TypeScript/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types
2015-04-13 14:29:37 -07:00

20 lines
545 B
Plaintext

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