19 lines
317 B
Text
19 lines
317 B
Text
=== 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(){
|
|
|
|
}
|
|
|
|
}
|
|
|