TypeScript/tests/baselines/reference/arrowFunctionInConstructorArgument1.errors.txt

8 lines
277 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/arrowFunctionInConstructorArgument1.ts (1 errors) ====
class C {
constructor(x: () => void) { }
}
var c = new C(() => { return asdf; } ) // should error
~~~~
!!! Cannot find name 'asdf'.