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
|
2014-08-19 04:56:03 +02:00
|
|
|
>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
|
2014-08-19 04:56:03 +02:00
|
|
|
>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
|
|
|
|
}
|