You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior:
A CS9074 warning is generated instead. This matches the behavior if the library and project are instead targeting netstandard2.1 (same language versions).
Version Used:
Steps to Reproduce:
Example interface method:
Example implementation method:
Diagnostic Id:
CS8987
Expected Behavior:
A CS9074 warning is generated instead. This matches the behavior if the library and project are instead targeting netstandard2.1 (same language versions).
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/low-level-struct-improvements implies that the warning vs error is based on C# version only. (
The diagnostic is reported as an error if the mismatched signatures are both using C#11 ref safety rules; otherwise, the diagnostic is a warning.
)Actual Behavior:
error CS8987: The 'scoped' modifier of parameter 'X' doesn't match overridden or implemented member
The text was updated successfully, but these errors were encountered: