TypeScript/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types

20 lines
317 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/namedFunctionExpressionAssignedToClassProperty.ts ===
class Foo{
>Foo : Foo
2014-08-15 23:33:16 +02:00
a = function bar(){
>a : () => void
2014-08-22 03:39:46 +02:00
>function bar(){ } : () => void
>bar : () => void
2014-08-15 23:33:16 +02:00
}; // this shouldn't crash the compiler...
constructor(){
}
}