mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
506 B
Plaintext
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))
|
|
|