mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
treat classes as block scoped entities
This commit is contained in:
1 parent
39c877a7f9
commit
dfdfec9efa
1 file changed
+3
@@ -606,6 +606,9 @@ namespace ts {
|
||||
// return C;
|
||||
// }(D))
|
||||
|
||||
if (node.name) {
|
||||
enableSubstitutionsForBlockScopedBindings();
|
||||
}
|
||||
const baseTypeNode = getClassExtendsHeritageClauseElement(node);
|
||||
const classFunction = createFunctionExpression(
|
||||
/*asteriskToken*/ undefined,
|
||||
|
||||
Reference in new issue
Block a user