TypeScript/tests/baselines/reference/typeofInObjectLiteralType.js
2014-08-14 16:36:33 -07:00

6 lines
241 B
JavaScript

//// [typeofInObjectLiteralType.ts]
var a: { b: number; c: typeof b }; // Should give error for attempting to use type query on b.
//// [typeofInObjectLiteralType.js]
var a; // Should give error for attempting to use type query on b.