TypeScript/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.symbols

19 lines
477 B
Plaintext
Raw Normal View History

=== tests/cases/compiler/namedFunctionExpressionAssignedToClassProperty.ts ===
class Foo{
>Foo : Symbol(Foo, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 0, 0))
a = function bar(){
>a : Symbol(a, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 0, 10))
>bar : Symbol(bar, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 2, 10))
}; // this shouldn't crash the compiler...
constructor(){
}
}