94 lines
2.3 KiB
Text
94 lines
2.3 KiB
Text
=== tests/cases/compiler/interfacedecl.ts ===
|
|
interface a0 {
|
|
>a0 : Symbol(a0, Decl(interfacedecl.ts, 0, 0))
|
|
|
|
(): string;
|
|
(a, b, c?: string): number;
|
|
>a : Symbol(a, Decl(interfacedecl.ts, 2, 5))
|
|
>b : Symbol(b, Decl(interfacedecl.ts, 2, 7))
|
|
>c : Symbol(c, Decl(interfacedecl.ts, 2, 10))
|
|
|
|
new (): string;
|
|
new (s: string);
|
|
>s : Symbol(s, Decl(interfacedecl.ts, 5, 9))
|
|
|
|
[n: number]: ()=>string;
|
|
>n : Symbol(n, Decl(interfacedecl.ts, 7, 5))
|
|
|
|
[s: string]: any;
|
|
>s : Symbol(s, Decl(interfacedecl.ts, 8, 5))
|
|
|
|
p1;
|
|
>p1 : Symbol(a0.p1, Decl(interfacedecl.ts, 8, 21))
|
|
|
|
p2: string;
|
|
>p2 : Symbol(a0.p2, Decl(interfacedecl.ts, 10, 7))
|
|
|
|
p3?;
|
|
>p3 : Symbol(a0.p3, Decl(interfacedecl.ts, 11, 15))
|
|
|
|
p4?: number;
|
|
>p4 : Symbol(a0.p4, Decl(interfacedecl.ts, 12, 8))
|
|
|
|
p5: (s: number) =>string;
|
|
>p5 : Symbol(a0.p5, Decl(interfacedecl.ts, 13, 16))
|
|
>s : Symbol(s, Decl(interfacedecl.ts, 14, 9))
|
|
|
|
f1();
|
|
>f1 : Symbol(a0.f1, Decl(interfacedecl.ts, 14, 29))
|
|
|
|
f2? ();
|
|
>f2 : Symbol(a0.f2, Decl(interfacedecl.ts, 16, 9))
|
|
|
|
f3(a: string): number;
|
|
>f3 : Symbol(a0.f3, Decl(interfacedecl.ts, 17, 11))
|
|
>a : Symbol(a, Decl(interfacedecl.ts, 18, 7))
|
|
|
|
f4? (s: number): string;
|
|
>f4 : Symbol(a0.f4, Decl(interfacedecl.ts, 18, 26))
|
|
>s : Symbol(s, Decl(interfacedecl.ts, 19, 9))
|
|
}
|
|
|
|
|
|
interface a1 {
|
|
>a1 : Symbol(a1, Decl(interfacedecl.ts, 20, 1))
|
|
|
|
[n: number]: number;
|
|
>n : Symbol(n, Decl(interfacedecl.ts, 24, 5))
|
|
}
|
|
|
|
interface a2 {
|
|
>a2 : Symbol(a2, Decl(interfacedecl.ts, 25, 1))
|
|
|
|
[s: string]: number;
|
|
>s : Symbol(s, Decl(interfacedecl.ts, 28, 5))
|
|
}
|
|
|
|
interface a {
|
|
>a : Symbol(a, Decl(interfacedecl.ts, 29, 1))
|
|
}
|
|
|
|
interface b extends a {
|
|
>b : Symbol(b, Decl(interfacedecl.ts, 32, 1))
|
|
>a : Symbol(a, Decl(interfacedecl.ts, 29, 1))
|
|
}
|
|
|
|
interface c extends a, b {
|
|
>c : Symbol(c, Decl(interfacedecl.ts, 35, 1))
|
|
>a : Symbol(a, Decl(interfacedecl.ts, 29, 1))
|
|
>b : Symbol(b, Decl(interfacedecl.ts, 32, 1))
|
|
}
|
|
|
|
interface d extends a {
|
|
>d : Symbol(d, Decl(interfacedecl.ts, 38, 1))
|
|
>a : Symbol(a, Decl(interfacedecl.ts, 29, 1))
|
|
}
|
|
|
|
class c1 implements a {
|
|
>c1 : Symbol(c1, Decl(interfacedecl.ts, 41, 1))
|
|
>a : Symbol(a, Decl(interfacedecl.ts, 29, 1))
|
|
}
|
|
var instance2 = new c1();
|
|
>instance2 : Symbol(instance2, Decl(interfacedecl.ts, 45, 3))
|
|
>c1 : Symbol(c1, Decl(interfacedecl.ts, 41, 1))
|
|
|