2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declarationEmit_nameConflicts2.ts ===
|
|
|
|
module X.Y.base {
|
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
|
|
|
|
|
|
|
export function f() { }
|
2014-08-22 03:39:46 +02:00
|
|
|
>f : typeof f
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-08-22 03:39:46 +02:00
|
|
|
// Bug 887180
|
2014-08-15 23:33:16 +02:00
|
|
|
export var f = X.Y.base.f; // Should be base.f
|
2014-08-22 03:39:46 +02:00
|
|
|
>f : typeof f
|
|
|
|
>X.Y.base.f : typeof f
|
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-22 03:39:46 +02:00
|
|
|
>f : typeof f
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var C = X.Y.base.C; // Should be base.C
|
|
|
|
>C : typeof C
|
|
|
|
>X.Y.base.C : typeof C
|
|
|
|
>X.Y.base : typeof base
|
|
|
|
>X.Y : typeof Y
|
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
|
|
|
>C : typeof C
|
|
|
|
|
|
|
|
export var M = X.Y.base.M; // Should be base.M
|
|
|
|
>M : typeof M
|
|
|
|
>X.Y.base.M : typeof M
|
|
|
|
>X.Y.base : typeof base
|
|
|
|
>X.Y : typeof Y
|
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
|
|
|
>M : typeof M
|
|
|
|
|
|
|
|
export var E = X.Y.base.E; // Should be base.E
|
|
|
|
>E : typeof E
|
|
|
|
>X.Y.base.E : typeof E
|
|
|
|
>X.Y.base : typeof base
|
|
|
|
>X.Y : typeof Y
|
|
|
|
>X : typeof X
|
|
|
|
>Y : typeof Y
|
|
|
|
>base : typeof base
|
|
|
|
>E : typeof E
|
|
|
|
}
|