|
| 1 | +=== tests/cases/compiler/b.ts === |
| 2 | +import B = require("./a.ts"); |
| 3 | +>B : Symbol(B, Decl(b.ts, 0, 0)) |
| 4 | + |
| 5 | +const x: B = { c: B }; |
| 6 | +>x : Symbol(x, Decl(b.ts, 1, 5)) |
| 7 | +>B : Symbol(B, Decl(b.ts, 0, 0)) |
| 8 | +>c : Symbol(c, Decl(b.ts, 1, 14)) |
| 9 | +>B : Symbol(B, Decl(b.ts, 0, 0)) |
| 10 | + |
| 11 | +=== tests/cases/compiler/a.ts === |
| 12 | +// This test is just like exportDefaultProperty2, but with `export =`. |
| 13 | + |
| 14 | +class C { |
| 15 | +>C : Symbol(C, Decl(a.ts, 0, 0), Decl(a.ts, 4, 1)) |
| 16 | + |
| 17 | + static B: number; |
| 18 | +>B : Symbol(C.B, Decl(a.ts, 2, 9), Decl(a.ts, 5, 13)) |
| 19 | +} |
| 20 | +namespace C { |
| 21 | +>C : Symbol(C, Decl(a.ts, 0, 0), Decl(a.ts, 4, 1)) |
| 22 | + |
| 23 | + export interface B { c: number } |
| 24 | +>B : Symbol(B, Decl(a.ts, 2, 9), Decl(a.ts, 5, 13)) |
| 25 | +>c : Symbol(B.c, Decl(a.ts, 6, 24)) |
| 26 | +} |
| 27 | + |
| 28 | +export = C.B; |
| 29 | +>C.B : Symbol(C.B, Decl(a.ts, 2, 9), Decl(a.ts, 5, 13)) |
| 30 | +>C : Symbol(C, Decl(a.ts, 0, 0), Decl(a.ts, 4, 1)) |
| 31 | +>B : Symbol(C.B, Decl(a.ts, 2, 9), Decl(a.ts, 5, 13)) |
| 32 | + |
0 commit comments