Replies: 2 comments 9 replies
-
If we're going to go the extra mile to special case if/else, I think it's worth to consider making it synonymous to switch: allow variables of different types to share a name between if statements. Right now, this feels like a shortcoming in the current rules and and I'd expect it will be noticed as an annoying restriction. |
Beta Was this translation helpful? Give feedback.
-
Can you extend redeclaration of variables to
I could redeclare |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-03-28.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions