Replies: 4 comments 13 replies
-
|
For some reason the team has ignored the question about pattern-matching closed-type argument against interfaces (and its interaction with accessibility). Is it the case that closed-type pattern-matching is intended to not interact in any interesting way with interfaces? |
Beta Was this translation helpful? Give feedback.
-
|
The question about implicit conversion from Given that the team has already made some effort in disabling certain conversions from the knowledge about a complete set of direct descendants, enabling certain conversions is in scope. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Regarding 0 subtypes case. The meeting notes say
This is bad suggestion. If the type is being authored, it's likely the
I agree there should be a warning but the warning should not be "non-exhaustive". As the note already explains, it can assume the code involving non-null When In more details:
Of course, in the suggested solution, |
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/main/meetings/2026/LDM-2026-05-18.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions