1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
=== tests/cases/compiler/declarationEmitNameConflicts2.ts ===
module X.Y.base {
>X : typeof X
>Y : typeof Y
>base : typeof base
export function f() { }
>f : () => void
export class C { }
>C : C
export module M {
>M : typeof M
export var v;
>v : any
}
export enum E { }
>E : E
}
module X.Y.base.Z {
>X : typeof X
>Y : typeof Y
>base : typeof base
>Z : typeof Z
export var f = X.Y.base.f; // Should be base.f
>f : () => void
>X.Y.base.f : () => void
>X.Y.base : typeof base
>X.Y : typeof Y
>X : typeof X
>Y : typeof Y
>base : typeof base
>f : () => void
export var C = X.Y.base.C; // Should be base.C
>C : typeof base.C
>X.Y.base.C : typeof base.C
>X.Y.base : typeof base
>X.Y : typeof Y
>X : typeof X
>Y : typeof Y
>base : typeof base
>C : typeof base.C
export var M = X.Y.base.M; // Should be base.M
>M : typeof base.M
>X.Y.base.M : typeof base.M
>X.Y.base : typeof base
>X.Y : typeof Y
>X : typeof X
>Y : typeof Y
>base : typeof base
>M : typeof base.M
export var E = X.Y.base.E; // Should be base.E
>E : typeof base.E
>X.Y.base.E : typeof base.E
>X.Y.base : typeof base
>X.Y : typeof Y
>X : typeof X
>Y : typeof Y
>base : typeof base
>E : typeof base.E
}
|