-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into merge-master
* upstream/master: (579 commits) Allow semi-colon after record type constraints (#45943) Revert change Remove dependson OfficialBuild Add Arcade package feed to PublishData Update PublishData.json Add delegate test Fix attribute headers for use implicit/explicit type tests Invoke IInteractiveWindow members from the UI thread Enable CompletionUsesTrackingPointsInTheFaceOfAutomaticBraceCompletion Add watson information. Remove PROTOTYPE comments in the compiler (#46172) Add assert Add the name of the current type to the exception we throw in an unsupported case. Enable .NET Core integration tests Extend SpillSequenceSpiller to handle code in a catch filter. (#46054) Enable CSharpCodeActions.GenerateMethodInClosedFile Run iterations of GenerateMethodInClosedFile Replace TODOs with github issues Do not offer to simplify ToString when shadowed (#46037) Create "Remove 'async' modifier" code fix (#45913) ...
- Loading branch information
Showing
1,943 changed files
with
63,378 additions
and
29,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# /warnversion warning "waves" | ||
|
||
The C# compiler flag `/warnversion` controls optional warnings. | ||
When we introduce new warnings that can be reported on existing code, | ||
we do so under an opt-in system so that programmers do not see new warnings | ||
without taking action to enable them. | ||
For that purpose, we have introduced the compiler flag "`/warnversion=n`" | ||
where `n` is a whole number or a decimal number. | ||
For a warning that was introduced in dotnet version `k`, | ||
that warning will be produced if the warning version `n` specified when compiling is | ||
greater than or equal to `k` and a compiler shipped with dotnet version | ||
`k` or later is used to compile the code. | ||
|
||
The default warning version is `0` (produce no optional warnings). | ||
Our first warning under control of `/warnversion` was introduced in version `5` | ||
as part of .NET 5. | ||
If you want the compiler to produce all applicable warnings, you can specify | ||
`/warnversion=9999`. | ||
In the project file, the property used to specify the warning version is `AnalysisLevel`. | ||
|
||
The table below describes all of the warnings controlled by `/warnversion`. | ||
|
||
| Warning ID | warnversion | Description | | ||
|------------|---------|-------------| | ||
| CS8073 | 5 | [Expression always true (or false) when comparing a struct to null](https://github.com/dotnet/roslyn/issues/45744) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.