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