TypeScript/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types

20 lines
545 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/namedFunctionExpressionAssignedToClassProperty.ts ===
class Foo{
2015-04-13 23:01:57 +02:00
>Foo : Foo, Symbol(Foo, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 0, 0))
2014-08-15 23:33:16 +02:00
a = function bar(){
2015-04-13 23:01:57 +02:00
>a : () => void, Symbol(a, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 0, 10))
2014-08-22 03:39:46 +02:00
>function bar(){ } : () => void
2015-04-13 23:01:57 +02:00
>bar : () => void, Symbol(bar, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 2, 10))
2014-08-15 23:33:16 +02:00
}; // this shouldn't crash the compiler...
constructor(){
}
}