π Search Terms
"panic: Debug failure. False expression: Undeclared private name for property declaration."
π Version & Regression Information
nightly
β― Playground Link
No response
π» Code
declare const dec: any;
@dec class C {
static #a() {}
#a() {}
}
π Actual behavior
panic: Debug failure. False expression: Undeclared private name for property declaration. [recovered, repanicked]
github.com/microsoft/TypeScript/tsc/internal/debug.Fail(...)
github.com/microsoft/TypeScript/tsc/internal/debug.assertSlow({0x318f210f5dc0?, 0x318f21268a00?, 0x318f210f5d30?})
github.com/microsoft/TypeScript/tsc/internal/debug.Assert(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/estransforms.(*classFieldsTransformer).visitMethodOrAccessorDeclaration(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/estransforms.(*classFieldsTransformer).setCurrentClassElementAnd(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/estransforms.(*classFieldsTransformer).visitClassElement(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*NodeVisitor).VisitSlice(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*NodeVisitor).VisitNodes(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/estransforms.(*classFieldsTransformer).transformClassMembers(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/estransforms.(*classFieldsTransformer).visitClassExpressionInNewClassLexicalEnvironment(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/estransforms.(*classFieldsTransformer).visitInNewClassLexicalEnvironment(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/estransforms.(*classFieldsTransformer).visitClassExpression(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/estransforms.(*classFieldsTransformer).visit(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*NodeVisitor).VisitNode(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*NodeVisitor).visitNode(...)
π Expected behavior
no crash
Additional information about the issue
To reproduce: tsc --target es2022
π Search Terms
"panic: Debug failure. False expression: Undeclared private name for property declaration."
π Version & Regression Information
nightly
β― Playground Link
No response
π» Code
π Actual behavior
π Expected behavior
no crash
Additional information about the issue
To reproduce:
tsc --target es2022