|
| 1 | +=== tests/cases/compiler/v1/index.d.ts === |
| 2 | +export as namespace Alpha; |
| 3 | +>Alpha : Symbol(Alpha, Decl(index.d.ts, 0, 0)) |
| 4 | + |
| 5 | +export var x: string; |
| 6 | +>x : Symbol(x, Decl(index.d.ts, 1, 10)) |
| 7 | + |
| 8 | +=== tests/cases/compiler/v2/index.d.ts === |
| 9 | +export as namespace Alpha; |
| 10 | +>Alpha : Symbol(Alpha, Decl(index.d.ts, 0, 0)) |
| 11 | + |
| 12 | +export var y: number; |
| 13 | +>y : Symbol(y, Decl(index.d.ts, 1, 10)) |
| 14 | + |
| 15 | +=== tests/cases/compiler/consumer.ts === |
| 16 | +import * as v1 from './v1'; |
| 17 | +>v1 : Symbol(v1, Decl(consumer.ts, 0, 6)) |
| 18 | + |
| 19 | +import * as v2 from './v2'; |
| 20 | +>v2 : Symbol(v2, Decl(consumer.ts, 1, 6)) |
| 21 | + |
| 22 | +=== tests/cases/compiler/global.ts === |
| 23 | +// Should be OK, first in wins |
| 24 | +const p: string = Alpha.x; |
| 25 | +>p : Symbol(p, Decl(global.ts, 1, 5)) |
| 26 | +>Alpha.x : Symbol(Alpha.x, Decl(index.d.ts, 1, 10)) |
| 27 | +>Alpha : Symbol(Alpha, Decl(index.d.ts, 0, 0)) |
| 28 | +>x : Symbol(Alpha.x, Decl(index.d.ts, 1, 10)) |
| 29 | + |
0 commit comments