Skip to content

Commit

Permalink
Fix a few param-nullchecking parsing bugs (#58644)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson authored Jan 7, 2022
1 parent e79b92e commit 0e5c679
Show file tree
Hide file tree
Showing 6 changed files with 1,745 additions and 330 deletions.
14 changes: 7 additions & 7 deletions src/Compilers/CSharp/Portable/Errors/ErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2007,13 +2007,6 @@ internal enum ErrorCode
// at runtime.
ERR_CannotUseRefInUnmanagedCallersOnly = 8977,

ERR_IncorrectNullCheckSyntax = 8990,
ERR_MustNullCheckInImplementation = 8991,
ERR_NonNullableValueTypeIsNullChecked = 8992,
WRN_NullCheckedHasDefaultNull = 8993,
ERR_NullCheckingOnByRefParameter = 8994,
WRN_NullCheckingOnNullableType = 8995,

#endregion

#region diagnostics introduced for C# 11.0
Expand All @@ -2026,6 +2019,13 @@ internal enum ErrorCode
ERR_RecordStructConstructorCallsDefaultConstructor = 8982,
ERR_StructHasInitializersAndNoDeclaredConstructor = 8983,

ERR_IncorrectNullCheckSyntax = 8990,
ERR_MustNullCheckInImplementation = 8991,
ERR_NonNullableValueTypeIsNullChecked = 8992,
WRN_NullCheckedHasDefaultNull = 8993,
ERR_NullCheckingOnByRefParameter = 8994,
WRN_NullCheckingOnNullableType = 8995,

#endregion

// Note: you will need to re-generate compiler code after adding warnings (eng\generate-compiler-code.cmd)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0e5c679

Please sign in to comment.