Skip to content

Block scoped classes#2623

Closed
vladima wants to merge 6 commits into
masterfrom
blockScopedClasses
Closed

Block scoped classes#2623
vladima wants to merge 6 commits into
masterfrom
blockScopedClasses

Conversation

@vladima
Copy link
Copy Markdown
Contributor

@vladima vladima commented Apr 5, 2015

Fixes #2595

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

👍

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

I don't think the check for meaning & SymbolFlags.BlockScopedVariable is necessary. The only way for the parent to be a catch clause is if it is also a block scoped variable.

Comment thread src/compiler/types.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.

It has now switched from node to n. Please rename it back

@JsonFreeman
Copy link
Copy Markdown
Contributor

👍

1 similar comment
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Apr 24, 2015

👍

@vladima
Copy link
Copy Markdown
Contributor Author

vladima commented Jun 12, 2015

this PR is subsumed by #3380

@vladima vladima closed this Jun 12, 2015
@mhegazy mhegazy deleted the blockScopedClasses branch June 12, 2015 23:06
@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.

Class declarations should be renamed (like let/const) when they conflict with something in scope.

5 participants