Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Inline local var and consts declaration in C# #15659

Closed
pmunin opened this issue Dec 4, 2016 · 1 comment
Closed

Proposal: Inline local var and consts declaration in C# #15659

pmunin opened this issue Dec 4, 2016 · 1 comment
Labels
Area-Language Design Resolution-Duplicate The described behavior is tracked in another issue

Comments

@pmunin
Copy link

pmunin commented Dec 4, 2016

It would be great if declaring local variables and constants was easier. E.g.:

myList.AddRange(var defaultItems = new[]{1,2,3,4});
//and/or
myList.AddRange(int[] defaultItems = var anotherVar = new[]{1,2,3,4});
@alrz
Copy link
Contributor

alrz commented Dec 4, 2016

#254

@gafter gafter added Area-Language Design Resolution-Duplicate The described behavior is tracked in another issue labels Dec 6, 2016
@gafter gafter closed this as completed Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Language Design Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

3 participants