mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
360 B
Plaintext
11 lines
360 B
Plaintext
arrowFunctionInConstructorArgument1.ts(4,30): error TS2304: Cannot find name 'asdf'.
|
|
|
|
|
|
==== arrowFunctionInConstructorArgument1.ts (1 errors) ====
|
|
class C {
|
|
constructor(x: () => void) { }
|
|
}
|
|
var c = new C(() => { return asdf; } ) // should error
|
|
~~~~
|
|
!!! error TS2304: Cannot find name 'asdf'.
|
|
|