TypeScript/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types

22 lines
319 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== 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(){
}
}