|
1 |
| -=== tests/cases/compiler/ambientClassDeclarationWithExtends.ts === |
| 1 | +=== tests/cases/compiler/ambientClassDeclarationExtends_singleFile.ts === |
2 | 2 | declare class A { }
|
3 |
| ->A : Symbol(A, Decl(ambientClassDeclarationWithExtends.ts, 0, 0)) |
| 3 | +>A : Symbol(A, Decl(ambientClassDeclarationExtends_singleFile.ts, 0, 0)) |
4 | 4 |
|
5 | 5 | declare class B extends A { }
|
6 |
| ->B : Symbol(B, Decl(ambientClassDeclarationWithExtends.ts, 0, 19)) |
7 |
| ->A : Symbol(A, Decl(ambientClassDeclarationWithExtends.ts, 0, 0)) |
| 6 | +>B : Symbol(B, Decl(ambientClassDeclarationExtends_singleFile.ts, 0, 19)) |
| 7 | +>A : Symbol(A, Decl(ambientClassDeclarationExtends_singleFile.ts, 0, 0)) |
8 | 8 |
|
9 | 9 | declare class C {
|
10 |
| ->C : Symbol(C, Decl(ambientClassDeclarationWithExtends.ts, 1, 29)) |
| 10 | +>C : Symbol(C, Decl(ambientClassDeclarationExtends_singleFile.ts, 1, 29)) |
11 | 11 |
|
12 | 12 | public foo;
|
13 |
| ->foo : Symbol(foo, Decl(ambientClassDeclarationWithExtends.ts, 3, 17)) |
| 13 | +>foo : Symbol(foo, Decl(ambientClassDeclarationExtends_singleFile.ts, 3, 17)) |
14 | 14 | }
|
15 | 15 | namespace D { var x; }
|
16 |
| ->D : Symbol(D, Decl(ambientClassDeclarationWithExtends.ts, 5, 1), Decl(ambientClassDeclarationWithExtends.ts, 6, 22)) |
17 |
| ->x : Symbol(x, Decl(ambientClassDeclarationWithExtends.ts, 6, 17)) |
| 16 | +>D : Symbol(D, Decl(ambientClassDeclarationExtends_singleFile.ts, 5, 1), Decl(ambientClassDeclarationExtends_singleFile.ts, 6, 22)) |
| 17 | +>x : Symbol(x, Decl(ambientClassDeclarationExtends_singleFile.ts, 6, 17)) |
18 | 18 |
|
19 | 19 | declare class D extends C { }
|
20 |
| ->D : Symbol(D, Decl(ambientClassDeclarationWithExtends.ts, 5, 1), Decl(ambientClassDeclarationWithExtends.ts, 6, 22)) |
21 |
| ->C : Symbol(C, Decl(ambientClassDeclarationWithExtends.ts, 1, 29)) |
| 20 | +>D : Symbol(D, Decl(ambientClassDeclarationExtends_singleFile.ts, 5, 1), Decl(ambientClassDeclarationExtends_singleFile.ts, 6, 22)) |
| 21 | +>C : Symbol(C, Decl(ambientClassDeclarationExtends_singleFile.ts, 1, 29)) |
22 | 22 |
|
23 | 23 | var d: C = new D();
|
24 |
| ->d : Symbol(d, Decl(ambientClassDeclarationWithExtends.ts, 9, 3)) |
25 |
| ->C : Symbol(C, Decl(ambientClassDeclarationWithExtends.ts, 1, 29)) |
26 |
| ->D : Symbol(D, Decl(ambientClassDeclarationWithExtends.ts, 5, 1), Decl(ambientClassDeclarationWithExtends.ts, 6, 22)) |
| 24 | +>d : Symbol(d, Decl(ambientClassDeclarationExtends_singleFile.ts, 9, 3)) |
| 25 | +>C : Symbol(C, Decl(ambientClassDeclarationExtends_singleFile.ts, 1, 29)) |
| 26 | +>D : Symbol(D, Decl(ambientClassDeclarationExtends_singleFile.ts, 5, 1), Decl(ambientClassDeclarationExtends_singleFile.ts, 6, 22)) |
| 27 | + |
| 28 | +=== tests/cases/compiler/ambientClassDeclarationExtends_file1.ts === |
| 29 | + |
| 30 | +declare class E { |
| 31 | +>E : Symbol(E, Decl(ambientClassDeclarationExtends_file1.ts, 0, 0)) |
| 32 | + |
| 33 | + public bar; |
| 34 | +>bar : Symbol(bar, Decl(ambientClassDeclarationExtends_file1.ts, 1, 17)) |
| 35 | +} |
| 36 | +namespace F { var y; } |
| 37 | +>F : Symbol(F, Decl(ambientClassDeclarationExtends_file1.ts, 3, 1), Decl(ambientClassDeclarationExtends_file2.ts, 0, 0)) |
| 38 | +>y : Symbol(y, Decl(ambientClassDeclarationExtends_file1.ts, 4, 17)) |
| 39 | + |
| 40 | +=== tests/cases/compiler/ambientClassDeclarationExtends_file2.ts === |
| 41 | + |
| 42 | +declare class F extends E { } |
| 43 | +>F : Symbol(F, Decl(ambientClassDeclarationExtends_file1.ts, 3, 1), Decl(ambientClassDeclarationExtends_file2.ts, 0, 0)) |
| 44 | +>E : Symbol(E, Decl(ambientClassDeclarationExtends_file1.ts, 0, 0)) |
| 45 | + |
| 46 | +var f: E = new F(); |
| 47 | +>f : Symbol(f, Decl(ambientClassDeclarationExtends_file2.ts, 2, 3)) |
| 48 | +>E : Symbol(E, Decl(ambientClassDeclarationExtends_file1.ts, 0, 0)) |
| 49 | +>F : Symbol(F, Decl(ambientClassDeclarationExtends_file1.ts, 3, 1), Decl(ambientClassDeclarationExtends_file2.ts, 0, 0)) |
27 | 50 |
|
0 commit comments