-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Closed
Copy link
Labels
Area-CompilersBugResolution-DuplicateThe described behavior is tracked in another issueThe described behavior is tracked in another issueUrgency-Soon
Milestone
Description
Version Used:
sharplab.io(master/2.9.0)
Expected Behavior:
https://github.com/dotnet/csharplang/blob/98043cdc889303d956d540d7ab3bc4f5044a9d3b/proposals/csharp-7.1/target-typed-default.md
xx == default should be the same as xx == default(T), and can't compile.
Actual Behavior:
xx == default is compile as xx == null without warns, and so default(T) == default is always false for struct.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-CompilersBugResolution-DuplicateThe described behavior is tracked in another issueThe described behavior is tracked in another issueUrgency-Soon