24 lines
421 B
JavaScript
24 lines
421 B
JavaScript
//// [namedFunctionExpressionAssignedToClassProperty.ts]
|
|
class Foo{
|
|
|
|
a = function bar(){
|
|
|
|
}; // this shouldn't crash the compiler...
|
|
|
|
|
|
|
|
constructor(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
//// [namedFunctionExpressionAssignedToClassProperty.js]
|
|
var Foo = (function () {
|
|
function Foo() {
|
|
this.a = function bar() {
|
|
}; // this shouldn't crash the compiler...
|
|
}
|
|
return Foo;
|
|
})();
|