2014-08-28 01:58:31 +02:00
|
|
|
=== tests/cases/compiler/declarationEmit_nameConflicts_0.ts ===
|
|
|
|
import im = require('declarationEmit_nameConflicts_1');
|
2015-04-13 23:01:57 +02:00
|
|
|
>im : typeof im, Symbol(im, Decl(declarationEmit_nameConflicts_0.ts, 0, 0))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export module M {
|
2015-04-13 23:01:57 +02:00
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function f() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 1, 17))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export class C { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 2, 27))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export module N {
|
2015-04-13 23:01:57 +02:00
|
|
|
>N : typeof N, Symbol(N, Decl(declarationEmit_nameConflicts_0.ts, 3, 22))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function g() { };
|
2015-04-13 23:01:57 +02:00
|
|
|
>g : () => void, Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
2014-08-28 01:58:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export import a = M.f;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : () => void, Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 1, 17))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export import b = M.C;
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : typeof C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>C : C, Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 2, 27))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export import c = N;
|
2015-04-13 23:01:57 +02:00
|
|
|
>c : typeof N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
|
|
|
>N : typeof N, Symbol(N, Decl(declarationEmit_nameConflicts_0.ts, 3, 22))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export import d = im;
|
2015-04-13 23:01:57 +02:00
|
|
|
>d : typeof d, Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24))
|
|
|
|
>im : typeof d, Symbol(d, Decl(declarationEmit_nameConflicts_1.ts, 0, 0))
|
2014-08-28 01:58:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export module M.P {
|
2015-04-13 23:01:57 +02:00
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>P : typeof P, Symbol(P, Decl(declarationEmit_nameConflicts_0.ts, 15, 16))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function f() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 15, 19))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export class C { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 16, 27))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export module N {
|
2015-04-13 23:01:57 +02:00
|
|
|
>N : typeof N, Symbol(N, Decl(declarationEmit_nameConflicts_0.ts, 17, 22))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function g() { };
|
2015-04-13 23:01:57 +02:00
|
|
|
>g : () => void, Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 18, 21))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 19, 32))
|
2014-08-28 01:58:31 +02:00
|
|
|
}
|
|
|
|
export import im = M.P.f;
|
2015-04-13 23:01:57 +02:00
|
|
|
>im : () => void, Symbol(im, Decl(declarationEmit_nameConflicts_0.ts, 21, 5))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>P : typeof P, Symbol(P, Decl(declarationEmit_nameConflicts_0.ts, 15, 16))
|
|
|
|
>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 15, 19))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export var a = M.a; // emitted incorrectly as typeof f
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : () => void, Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 23, 14))
|
|
|
|
>M.a : () => void, Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>a : () => void, Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export var b = M.b; // ok
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : typeof M.C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 24, 14))
|
|
|
|
>M.b : typeof M.C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>b : typeof M.C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export var c = M.c; // ok
|
2015-04-13 23:01:57 +02:00
|
|
|
>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 25, 14))
|
|
|
|
>M.c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export var g = M.c.g; // ok
|
2015-04-13 23:01:57 +02:00
|
|
|
>g : () => void, Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 26, 14))
|
|
|
|
>M.c.g : () => void, Symbol(c.g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21))
|
|
|
|
>M.c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
|
|
|
>g : () => void, Symbol(c.g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export var d = M.d; // emitted incorrectly as typeof im
|
2015-04-13 23:01:57 +02:00
|
|
|
>d : typeof M.d, Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 27, 14))
|
|
|
|
>M.d : typeof M.d, Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>d : typeof M.d, Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24))
|
2014-08-28 01:58:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export module M.Q {
|
2015-04-13 23:01:57 +02:00
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>Q : typeof Q, Symbol(Q, Decl(declarationEmit_nameConflicts_0.ts, 30, 16))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function f() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 30, 19))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export class C { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 31, 27))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export module N {
|
2015-04-13 23:01:57 +02:00
|
|
|
>N : typeof N, Symbol(N, Decl(declarationEmit_nameConflicts_0.ts, 32, 22))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export function g() { };
|
2015-04-13 23:01:57 +02:00
|
|
|
>g : () => void, Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 33, 21))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 34, 32))
|
2014-08-28 01:58:31 +02:00
|
|
|
}
|
|
|
|
export interface b extends M.b { } // ok
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : b, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 36, 5))
|
|
|
|
>M.b : any, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>b : M.C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I extends M.c.I { } // ok
|
2015-04-13 23:01:57 +02:00
|
|
|
>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 37, 38))
|
|
|
|
>M.c.I : any, Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
|
|
|
>M.c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
|
|
|
>I : M.c.I, Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export module c {
|
2015-04-13 23:01:57 +02:00
|
|
|
>c : any, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 38, 40))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I extends M.c.I { } // ok
|
2015-04-13 23:01:57 +02:00
|
|
|
>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 39, 21))
|
|
|
|
>M.c.I : any, Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
|
|
|
>M.c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
|
|
|
>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
|
|
|
>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
|
|
|
>I : M.c.I, Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
2014-08-28 01:58:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
=== tests/cases/compiler/declarationEmit_nameConflicts_1.ts ===
|
|
|
|
module f { export class c { } }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : typeof f, Symbol(f, Decl(declarationEmit_nameConflicts_1.ts, 0, 0))
|
|
|
|
>c : c, Symbol(c, Decl(declarationEmit_nameConflicts_1.ts, 0, 10))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export = f;
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : typeof f, Symbol(f, Decl(declarationEmit_nameConflicts_1.ts, 0, 0))
|
2014-08-28 01:58:31 +02:00
|
|
|
|