TypeScript/tests/baselines/reference/declFileInternalAliases.types

35 lines
503 B
Plaintext
Raw Normal View History

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