TypeScript/tests/baselines/reference/typeofInterface.types
2014-08-15 14:37:48 -07:00

28 lines
401 B
Plaintext

=== tests/cases/compiler/typeofInterface.ts ===
var I: { a: string};
>I : { a: string; }
>a : string
interface I {
>I : I
I: number;
>I : number
foo: typeof I;
>foo : { a: string; }
>I : { a: string; }
}
var k: I;
>k : I
>I : I
var j: typeof k.foo = { a: "hello" };
>j : { a: string; }
>k : I
>foo : { a: string; }
>{ a: "hello" } : { a: string; }
>a : string