35 lines
503 B
Plaintext
35 lines
503 B
Plaintext
=== 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 x
|
|
>m : typeof m
|
|
>c : x
|
|
|
|
export var d = new x(); // emit the type as m.c
|
|
>d : x
|
|
>new x() : x
|
|
>x : typeof x
|
|
}
|
|
module m2 {
|
|
>m2 : typeof m2
|
|
|
|
export import x = m.c;
|
|
>x : typeof x
|
|
>m : typeof m
|
|
>c : x
|
|
|
|
export var d = new x(); // emit the type as x
|
|
>d : x
|
|
>new x() : x
|
|
>x : typeof x
|
|
}
|