mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Merge pull request #7906 from Microsoft/blockScopedNamesForClasses
treat classes as block scoped entities
This commit is contained in:
commit
8c9de1df68
@ -606,6 +606,9 @@ namespace ts {
|
||||
// return C;
|
||||
// }(D))
|
||||
|
||||
if (node.name) {
|
||||
enableSubstitutionsForBlockScopedBindings();
|
||||
}
|
||||
const baseTypeNode = getClassExtendsHeritageClauseElement(node);
|
||||
const classFunction = createFunctionExpression(
|
||||
/*asteriskToken*/ undefined,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user