2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declFileInternalAliases.ts ===
|
|
|
|
module m {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m : typeof m
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class c {
|
|
|
|
>c : c
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module m1 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m1 : typeof m1
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import x = m.c;
|
2014-08-28 21:40:58 +02:00
|
|
|
>x : typeof x
|
2014-08-19 04:56:03 +02:00
|
|
|
>m : typeof m
|
2014-08-25 19:36:12 +02:00
|
|
|
>c : x
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var d = new x(); // emit the type as m.c
|
2014-08-25 19:36:12 +02:00
|
|
|
>d : x
|
|
|
|
>new x() : x
|
|
|
|
>x : typeof x
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
module m2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : typeof m2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export import x = m.c;
|
2014-08-28 21:40:58 +02:00
|
|
|
>x : typeof x
|
2014-08-19 04:56:03 +02:00
|
|
|
>m : typeof m
|
2014-08-25 19:36:12 +02:00
|
|
|
>c : x
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var d = new x(); // emit the type as x
|
2014-08-25 19:36:12 +02:00
|
|
|
>d : x
|
|
|
|
>new x() : x
|
|
|
|
>x : typeof x
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|