Skip to content

align behavior of constant expressions in initializers of ambient enu…#4946

Merged
vladima merged 1 commit into
masterfrom
constInitializersInEnums
Sep 25, 2015
Merged

align behavior of constant expressions in initializers of ambient enu…#4946
vladima merged 1 commit into
masterfrom
constInitializersInEnums

Conversation

@vladima

@vladima vladima commented Sep 24, 2015

Copy link
Copy Markdown
Contributor

…m members with spec. Fixes #2790

Comment thread src/compiler/checker.ts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: since u only use this variable here, just do autoValue === undefined

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to have the constant since it makes it clearer

@yuit

yuit commented Sep 24, 2015

Copy link
Copy Markdown
Contributor

👍

@vladima

vladima commented Sep 24, 2015

Copy link
Copy Markdown
Contributor Author

@DanielRosenwasser any other comments?

@DanielRosenwasser

Copy link
Copy Markdown
Member

👍

vladima added a commit that referenced this pull request Sep 25, 2015
align behavior of constant expressions in initializers of ambient enu…
@vladima vladima merged commit b866781 into master Sep 25, 2015
@vladima vladima deleted the constInitializersInEnums branch September 25, 2015 04:49
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants