TypeScript/tests/cases/compiler/typeofInterface.ts
2014-07-12 17:30:19 -07:00

9 lines
128 B
TypeScript

var I: { a: string};
interface I {
I: number;
foo: typeof I;
}
var k: I;
var j: typeof k.foo = { a: "hello" };