TypeScript/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types
2015-04-15 16:44:20 -07:00

20 lines
317 B
Plaintext

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