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

4 lines
248 B
Plaintext

==== tests/cases/compiler/typeofInObjectLiteralType.ts (1 errors) ====
var a: { b: number; c: typeof b }; // Should give error for attempting to use type query on b.
~
!!! error TS2304: Cannot find name 'b'.