8 lines
277 B
Plaintext
8 lines
277 B
Plaintext
|
==== tests/cases/compiler/arrowFunctionInConstructorArgument1.ts (1 errors) ====
|
||
|
class C {
|
||
|
constructor(x: () => void) { }
|
||
|
}
|
||
|
var c = new C(() => { return asdf; } ) // should error
|
||
|
~~~~
|
||
|
!!! Cannot find name 'asdf'.
|
||
|
|