1 2 3 4 5 6 7 8 9 10 11 12 13
|
//// [tests/cases/compiler/arrowFunctionInConstructorArgument1.ts] ////
=== arrowFunctionInConstructorArgument1.ts ===
class C {
>C : Symbol(C, Decl(arrowFunctionInConstructorArgument1.ts, 0, 0))
constructor(x: () => void) { }
>x : Symbol(x, Decl(arrowFunctionInConstructorArgument1.ts, 1, 16))
}
var c = new C(() => { return asdf; } ) // should error
>c : Symbol(c, Decl(arrowFunctionInConstructorArgument1.ts, 3, 3))
>C : Symbol(C, Decl(arrowFunctionInConstructorArgument1.ts, 0, 0))
|