Files
tsgo/testdata/baselines/reference/submodule/compiler/arrowFunctionInConstructorArgument1.symbols
2025-02-26 14:53:49 -08:00

14 lines
506 B
Plaintext

//// [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))