1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
//// [tests/cases/compiler/namedFunctionExpressionAssignedToClassProperty.ts] ////
=== namedFunctionExpressionAssignedToClassProperty.ts ===
class Foo{
>Foo : Symbol(Foo, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 0, 0))
a = function bar(){
>a : Symbol(Foo.a, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 0, 10))
>bar : Symbol(bar, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 2, 10))
}; // this shouldn't crash the compiler...
constructor(){
}
}
|