TypeScript/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.types

22 lines
394 B
Plaintext
Raw Normal View History

2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/declarationEmit_nameConflictsWithAlias.ts ===
export module C { export interface I { } }
>C : any
>I : I
2014-08-28 01:58:31 +02:00
export import v = C;
>v : any
>C : any
2014-08-28 01:58:31 +02:00
export module M {
>M : typeof M
2014-08-28 01:58:31 +02:00
export module C { export interface I { } }
>C : any
>I : I
2014-08-28 01:58:31 +02:00
export var w: v.I; // Gets emitted as C.I, which is the wrong interface
>w : v.I
>v : any
>I : v.I
2014-08-28 01:58:31 +02:00
}