TypeScript/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.types

22 lines
414 B
Text
Raw Normal View History

2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/declarationEmit_nameConflictsWithAlias.ts ===
export module C { export interface I { } }
2014-08-28 21:40:58 +02:00
>C : unknown
2014-08-28 01:58:31 +02:00
>I : I
export import v = C;
2014-08-28 21:40:58 +02:00
>v : unknown
>C : unknown
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 module C { export interface I { } }
2014-08-28 21:40:58 +02:00
>C : unknown
2014-08-28 01:58:31 +02:00
>I : I
export var w: v.I; // Gets emitted as C.I, which is the wrong interface
>w : v.I
2014-08-28 21:40:58 +02:00
>v : unknown
2014-08-28 01:58:31 +02:00
>I : v.I
}