76 lines
3.6 KiB
Text
76 lines
3.6 KiB
Text
=== tests/cases/compiler/declarationEmit_nameConflicts3.ts ===
|
|
module M {
|
|
>M : Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1))
|
|
|
|
export interface D { }
|
|
>D : Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26))
|
|
|
|
export module D {
|
|
>D : Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26))
|
|
|
|
export function f() { }
|
|
>f : Symbol(f, Decl(declarationEmit_nameConflicts3.ts, 2, 21))
|
|
}
|
|
export module C {
|
|
>C : Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 4, 5))
|
|
|
|
export function f() { }
|
|
>f : Symbol(f, Decl(declarationEmit_nameConflicts3.ts, 5, 21))
|
|
}
|
|
export module E {
|
|
>E : Symbol(E, Decl(declarationEmit_nameConflicts3.ts, 7, 5))
|
|
|
|
export function f() { }
|
|
>f : Symbol(f, Decl(declarationEmit_nameConflicts3.ts, 8, 21))
|
|
}
|
|
}
|
|
|
|
module M.P {
|
|
>M : Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1))
|
|
>P : Symbol(P, Decl(declarationEmit_nameConflicts3.ts, 13, 9))
|
|
|
|
export class C {
|
|
>C : Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 13, 12))
|
|
|
|
static f() { }
|
|
>f : Symbol(C.f, Decl(declarationEmit_nameConflicts3.ts, 14, 20))
|
|
}
|
|
export class E extends C { }
|
|
>E : Symbol(E, Decl(declarationEmit_nameConflicts3.ts, 16, 5))
|
|
>C : Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 13, 12))
|
|
|
|
export enum D {
|
|
>D : Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 17, 32))
|
|
|
|
f
|
|
>f : Symbol(D.f, Decl(declarationEmit_nameConflicts3.ts, 18, 19))
|
|
}
|
|
export var v: M.D; // ok
|
|
>v : Symbol(v, Decl(declarationEmit_nameConflicts3.ts, 21, 14))
|
|
>M : Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1))
|
|
>D : Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26))
|
|
|
|
export var w = M.D.f; // error, should be typeof M.D.f
|
|
>w : Symbol(w, Decl(declarationEmit_nameConflicts3.ts, 22, 14))
|
|
>M.D.f : Symbol(D.f, Decl(declarationEmit_nameConflicts3.ts, 2, 21))
|
|
>M.D : Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26))
|
|
>M : Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1))
|
|
>D : Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26))
|
|
>f : Symbol(D.f, Decl(declarationEmit_nameConflicts3.ts, 2, 21))
|
|
|
|
export var x = M.C.f; // error, should be typeof M.C.f
|
|
>x : Symbol(x, Decl(declarationEmit_nameConflicts3.ts, 23, 14), Decl(declarationEmit_nameConflicts3.ts, 24, 14))
|
|
>M.C.f : Symbol(C.f, Decl(declarationEmit_nameConflicts3.ts, 5, 21))
|
|
>M.C : Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 4, 5))
|
|
>M : Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1))
|
|
>C : Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 4, 5))
|
|
>f : Symbol(C.f, Decl(declarationEmit_nameConflicts3.ts, 5, 21))
|
|
|
|
export var x = M.E.f; // error, should be typeof M.E.f
|
|
>x : Symbol(x, Decl(declarationEmit_nameConflicts3.ts, 23, 14), Decl(declarationEmit_nameConflicts3.ts, 24, 14))
|
|
>M.E.f : Symbol(E.f, Decl(declarationEmit_nameConflicts3.ts, 8, 21))
|
|
>M.E : Symbol(E, Decl(declarationEmit_nameConflicts3.ts, 7, 5))
|
|
>M : Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1))
|
|
>E : Symbol(E, Decl(declarationEmit_nameConflicts3.ts, 7, 5))
|
|
>f : Symbol(E.f, Decl(declarationEmit_nameConflicts3.ts, 8, 21))
|
|
}
|