27 lines
401 B
Text
27 lines
401 B
Text
=== 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
|
|
|