TypeScript/tests/baselines/reference/typeofInObjectLiteralType.js
2014-07-12 17:30:19 -07:00

6 lines
180 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;