2014-08-28 01:58:31 +02:00
|
|
|
=== tests/cases/compiler/declarationEmit_nameConflicts_0.ts ===
|
|
|
|
import im = require('declarationEmit_nameConflicts_1');
|
2014-08-28 21:40:58 +02:00
|
|
|
>im : typeof im
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export module M {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : typeof M
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function f() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export class C { }
|
|
|
|
>C : C
|
|
|
|
|
|
|
|
export module N {
|
2014-08-28 21:40:58 +02:00
|
|
|
>N : typeof N
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function g() { };
|
2014-08-28 21:52:44 +02:00
|
|
|
>g : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I { }
|
|
|
|
>I : I
|
|
|
|
}
|
|
|
|
|
|
|
|
export import a = M.f;
|
2014-08-28 21:52:44 +02:00
|
|
|
>a : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
>M : typeof M
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export import b = M.C;
|
2014-08-28 21:40:58 +02:00
|
|
|
>b : typeof C
|
2014-08-28 01:58:31 +02:00
|
|
|
>M : typeof M
|
|
|
|
>C : C
|
|
|
|
|
|
|
|
export import c = N;
|
2014-08-28 21:40:58 +02:00
|
|
|
>c : typeof N
|
2014-08-28 01:58:31 +02:00
|
|
|
>N : typeof N
|
|
|
|
|
|
|
|
export import d = im;
|
2014-08-28 21:40:58 +02:00
|
|
|
>d : typeof d
|
2014-08-28 01:58:31 +02:00
|
|
|
>im : typeof d
|
|
|
|
}
|
|
|
|
|
|
|
|
export module M.P {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : typeof M
|
|
|
|
>P : typeof P
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function f() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export class C { }
|
|
|
|
>C : C
|
|
|
|
|
|
|
|
export module N {
|
2014-08-28 21:40:58 +02:00
|
|
|
>N : typeof N
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function g() { };
|
2014-08-28 21:52:44 +02:00
|
|
|
>g : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I { }
|
|
|
|
>I : I
|
|
|
|
}
|
|
|
|
export import im = M.P.f;
|
2014-08-28 21:52:44 +02:00
|
|
|
>im : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
>M : typeof M
|
|
|
|
>P : typeof P
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export var a = M.a; // emitted incorrectly as typeof f
|
2014-08-28 21:52:44 +02:00
|
|
|
>a : () => void
|
|
|
|
>M.a : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
>M : typeof M
|
2014-08-28 21:52:44 +02:00
|
|
|
>a : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export var b = M.b; // ok
|
|
|
|
>b : typeof M.C
|
|
|
|
>M.b : typeof M.C
|
|
|
|
>M : typeof M
|
|
|
|
>b : typeof M.C
|
|
|
|
|
|
|
|
export var c = M.c; // ok
|
|
|
|
>c : typeof M.N
|
|
|
|
>M.c : typeof M.N
|
|
|
|
>M : typeof M
|
|
|
|
>c : typeof M.N
|
|
|
|
|
|
|
|
export var g = M.c.g; // ok
|
2014-08-28 21:52:44 +02:00
|
|
|
>g : () => void
|
|
|
|
>M.c.g : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
>M.c : typeof M.N
|
|
|
|
>M : typeof M
|
|
|
|
>c : typeof M.N
|
2014-08-28 21:52:44 +02:00
|
|
|
>g : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export var d = M.d; // emitted incorrectly as typeof im
|
|
|
|
>d : typeof M.d
|
|
|
|
>M.d : typeof M.d
|
|
|
|
>M : typeof M
|
|
|
|
>d : typeof M.d
|
|
|
|
}
|
|
|
|
|
|
|
|
export module M.Q {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : typeof M
|
|
|
|
>Q : typeof Q
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function f() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export class C { }
|
|
|
|
>C : C
|
|
|
|
|
|
|
|
export module N {
|
2014-08-28 21:40:58 +02:00
|
|
|
>N : typeof N
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function g() { };
|
2014-08-28 21:52:44 +02:00
|
|
|
>g : () => void
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I { }
|
|
|
|
>I : I
|
|
|
|
}
|
|
|
|
export interface b extends M.b { } // ok
|
|
|
|
>b : b
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : unknown
|
2014-08-28 01:58:31 +02:00
|
|
|
>b : M.C
|
|
|
|
|
|
|
|
export interface I extends M.c.I { } // ok
|
|
|
|
>I : I
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : unknown
|
|
|
|
>c : unknown
|
2014-08-28 01:58:31 +02:00
|
|
|
>I : M.c.I
|
|
|
|
|
|
|
|
export module c {
|
2014-08-28 21:40:58 +02:00
|
|
|
>c : unknown
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I extends M.c.I { } // ok
|
|
|
|
>I : I
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : unknown
|
|
|
|
>c : unknown
|
2014-08-28 01:58:31 +02:00
|
|
|
>I : M.c.I
|
|
|
|
}
|
|
|
|
}
|
|
|
|
=== tests/cases/compiler/declarationEmit_nameConflicts_1.ts ===
|
|
|
|
module f { export class c { } }
|
2014-08-28 21:40:58 +02:00
|
|
|
>f : typeof f
|
2014-08-28 01:58:31 +02:00
|
|
|
>c : c
|
|
|
|
|
|
|
|
export = f;
|
|
|
|
>f : typeof f
|
|
|
|
|