2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declarationEmit_nameConflicts2.ts ===
|
|
|
|
module X.Y.base {
|
2014-08-28 21:40:58 +02:00
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function f() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class C { }
|
|
|
|
>C : C
|
|
|
|
|
|
|
|
export module M {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : typeof M
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var v;
|
|
|
|
>v : any
|
|
|
|
}
|
|
|
|
export enum E { }
|
|
|
|
>E : E
|
|
|
|
}
|
|
|
|
|
|
|
|
module X.Y.base.Z {
|
2014-08-28 21:40:58 +02:00
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
|
|
|
>Z : typeof Z
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var f = X.Y.base.f; // Should be base.f
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : () => void
|
|
|
|
>X.Y.base.f : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>X.Y.base : typeof base
|
|
|
|
>X.Y : typeof Y
|
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var C = X.Y.base.C; // Should be base.C
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : typeof base.C
|
|
|
|
>X.Y.base.C : typeof base.C
|
2014-08-15 23:33:16 +02:00
|
|
|
>X.Y.base : typeof base
|
|
|
|
>X.Y : typeof Y
|
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : typeof base.C
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var M = X.Y.base.M; // Should be base.M
|
2014-08-25 19:36:12 +02:00
|
|
|
>M : typeof base.M
|
|
|
|
>X.Y.base.M : typeof base.M
|
2014-08-15 23:33:16 +02:00
|
|
|
>X.Y.base : typeof base
|
|
|
|
>X.Y : typeof Y
|
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
2014-08-25 19:36:12 +02:00
|
|
|
>M : typeof base.M
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var E = X.Y.base.E; // Should be base.E
|
2014-08-25 19:36:12 +02:00
|
|
|
>E : typeof base.E
|
|
|
|
>X.Y.base.E : typeof base.E
|
2014-08-15 23:33:16 +02:00
|
|
|
>X.Y.base : typeof base
|
|
|
|
>X.Y : typeof Y
|
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
2014-08-25 19:36:12 +02:00
|
|
|
>E : typeof base.E
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|