Skip to content

Class declarations should be block scoped.#2588

Merged
CyrusNajmabadi merged 5 commits into
masterfrom
classExpr
Apr 2, 2015
Merged

Class declarations should be block scoped.#2588
CyrusNajmabadi merged 5 commits into
masterfrom
classExpr

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Fixes #2578
Fixes #2579

Comment thread src/compiler/checker.ts Outdated
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.

Turn this into a TODO.

Also, for future reference, I am more in favor of ClassyDeclaration over ClassLikeDeclaration.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Apr 2, 2015

The __extends change should be discussed in the design meeting. so please keep this separate.

other than that the change looks good to me.

CyrusNajmabadi added a commit that referenced this pull request Apr 2, 2015
Class declarations should be block scoped.
@CyrusNajmabadi CyrusNajmabadi merged commit 35d8536 into master Apr 2, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the classExpr branch April 2, 2015 21:13
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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.

Anonymous class expressions not returning the constructor function in emit Class declarations should be block scoped, not function scoped

4 participants