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