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

Remove restriction that 'var' variables cannot be const. #21149

Closed

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi CyrusNajmabadi added the PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. label Jul 26, 2017
@CyrusNajmabadi
Copy link
Member Author

@CyrusNajmabadi CyrusNajmabadi force-pushed the features/const-var branch 2 times, most recently from cb1e581 to 4c4ec55 Compare July 27, 2017 19:27
@jcouv
Copy link
Member

jcouv commented Aug 1, 2017

From discussion with Tomas, if we support this for locals, we'll probably want to support this in scripting too (although technically const var x = ...; in script is a field).
But I do not know how to make this work without introducing an unbound recursion (stack overflow). See recent issue: #21223

I'll stop by to share some context.

@sharwell sharwell added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Sep 8, 2017
@CyrusNajmabadi CyrusNajmabadi deleted the features/const-var branch April 19, 2018 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers cla-already-signed Community The pull request was submitted by a contributor who is not a Microsoft employee. PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants