TypeScript/tests/baselines/reference/declFileInternalAliases.types

35 lines
503 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileInternalAliases.ts ===
module m {
>m : typeof m
export class c {
>c : c
}
}
module m1 {
>m1 : typeof m1
import x = m.c;
>x : typeof c
>m : typeof m
2014-08-15 23:33:16 +02:00
>c : c
export var d = new x(); // emit the type as m.c
>d : c
>new x() : c
>x : typeof c
}
module m2 {
>m2 : typeof m2
export import x = m.c;
>x : typeof c
>m : typeof m
2014-08-15 23:33:16 +02:00
>c : c
export var d = new x(); // emit the type as x
>d : c
>new x() : c
>x : typeof c
}