Replies: 3 comments
-
Also #1077. |
Beta Was this translation helpful? Give feedback.
-
Thanks guys. Sorry for posting in the wrong repo. #1077 is similar for the ref part, but I guess mine is new-ish that it's requesting a similar thing for the in keyword (I know they're related). But anyway, thanks for considering my request! |
Beta Was this translation helpful? Give feedback.
-
@ghost symmetry for
pre assignment is not possible, because methods with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@Kentalot commented on Mon Jan 29 2018
Version Used:
I'm using C# 7.2 and version 15.5.3 of VS 2017 Enterprise.
Steps to Reproduce:
Expected Behavior: Compiles and y is usable after calling DoNothing and z is usable after calling DoNothingIn and all of x, y, and z are basically null;
Actual Behavior:
Does not compile since you can't inline declare variables for ref or in keywords. I hope that's clear. Thanks!
@HaloFour commented on Mon Jan 29 2018
Proposals to change the behavior of the language are taken at the C# Language repository.
Beta Was this translation helpful? Give feedback.
All reactions