Replies: 8 comments
-
I don't get it. Is this a typo, missing the negation (both features should NOT be allowed), or the null coalescing behavior will change in order for both features be allowed on unconstrained type parameters? |
Beta Was this translation helpful? Give feedback.
-
This is not a typo. Both features should work for unconstrained type parameters. |
Beta Was this translation helpful? Give feedback.
-
Correct, see #1720. |
Beta Was this translation helpful? Give feedback.
-
That seems backwards given that the previous conclusion suggested the semantics should be the same as |
Beta Was this translation helpful? Give feedback.
-
@bbarry, the type of |
Beta Was this translation helpful? Give feedback.
-
More precisely, given |
Beta Was this translation helpful? Give feedback.
-
Shouldn't it be If x is not null, the assignment is never performed. instead? |
Beta Was this translation helpful? Give feedback.
-
@paulomorgado You're not the first person to notice that, see #1856. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-07-16.md
Agenda:
Beta Was this translation helpful? Give feedback.
All reactions