mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Fix class name reference in class expr (#44877)
This commit is contained in:
@@ -24354,7 +24354,7 @@ namespace ts {
|
||||
let container = getThisContainer(node, /*includeArrowFunctions*/ false);
|
||||
while (container.kind !== SyntaxKind.SourceFile) {
|
||||
if (container.parent === declaration) {
|
||||
if (container.kind === SyntaxKind.PropertyDeclaration && isStatic(container)) {
|
||||
if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) {
|
||||
getNodeLinks(declaration).flags |= NodeCheckFlags.ClassWithConstructorReference;
|
||||
getNodeLinks(node).flags |= NodeCheckFlags.ConstructorReferenceInClass;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user