TypeScript/tests/baselines/reference/arrowFunctionInConstructorArgument1.errors.txt
2014-07-12 17:30:19 -07:00

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'.