TypeScript/tests/baselines/reference/arrowFunctionInConstructorArgument1.errors.txt
2014-09-11 16:11:08 -07:00

8 lines
291 B
Plaintext

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