TypeScript/tests/baselines/reference/typeofInterface.types

30 lines
445 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/typeofInterface.ts ===
var I: { a: string};
>I : { a: string; }
>a : string
2014-08-15 23:33:16 +02:00
interface I {
>I : I
2014-08-15 23:33:16 +02:00
I: number;
>I : number
2014-08-15 23:33:16 +02:00
foo: typeof I;
>foo : { a: string; }
>I : { a: string; }
2014-08-15 23:33:16 +02:00
}
var k: I;
>k : I
>I : I
2014-08-15 23:33:16 +02:00
var j: typeof k.foo = { a: "hello" };
>j : { a: string; }
>k.foo : { a: string; }
>k : I
>foo : { a: string; }
2014-08-15 23:33:16 +02:00
>{ a: "hello" } : { a: string; }
>a : string
2015-04-13 21:36:11 +02:00
>"hello" : string
2014-08-15 23:33:16 +02:00