28 lines
966 B
Plaintext
28 lines
966 B
Plaintext
=== tests/cases/compiler/typeofInterface.ts ===
|
|
var I: { a: string};
|
|
>I : Symbol(I, Decl(typeofInterface.ts, 0, 3), Decl(typeofInterface.ts, 0, 20))
|
|
>a : Symbol(a, Decl(typeofInterface.ts, 0, 8))
|
|
|
|
interface I {
|
|
>I : Symbol(I, Decl(typeofInterface.ts, 0, 3), Decl(typeofInterface.ts, 0, 20))
|
|
|
|
I: number;
|
|
>I : Symbol(I, Decl(typeofInterface.ts, 2, 13))
|
|
|
|
foo: typeof I;
|
|
>foo : Symbol(foo, Decl(typeofInterface.ts, 3, 14))
|
|
>I : Symbol(I, Decl(typeofInterface.ts, 0, 3), Decl(typeofInterface.ts, 0, 20))
|
|
}
|
|
|
|
var k: I;
|
|
>k : Symbol(k, Decl(typeofInterface.ts, 7, 3))
|
|
>I : Symbol(I, Decl(typeofInterface.ts, 0, 3), Decl(typeofInterface.ts, 0, 20))
|
|
|
|
var j: typeof k.foo = { a: "hello" };
|
|
>j : Symbol(j, Decl(typeofInterface.ts, 8, 3))
|
|
>k.foo : Symbol(I.foo, Decl(typeofInterface.ts, 3, 14))
|
|
>k : Symbol(k, Decl(typeofInterface.ts, 7, 3))
|
|
>foo : Symbol(I.foo, Decl(typeofInterface.ts, 3, 14))
|
|
>a : Symbol(a, Decl(typeofInterface.ts, 8, 23))
|
|
|