34 lines
461 B
Text
34 lines
461 B
Text
=== tests/cases/compiler/internalAliasEnum.ts ===
|
|
module a {
|
|
>a : typeof a
|
|
|
|
export enum weekend {
|
|
>weekend : weekend
|
|
|
|
Friday,
|
|
>Friday : weekend
|
|
|
|
Saturday,
|
|
>Saturday : weekend
|
|
|
|
Sunday
|
|
>Sunday : weekend
|
|
}
|
|
}
|
|
|
|
module c {
|
|
>c : typeof c
|
|
|
|
import b = a.weekend;
|
|
>b : typeof b
|
|
>a : typeof a
|
|
>weekend : b
|
|
|
|
export var bVal: b = b.Sunday;
|
|
>bVal : b
|
|
>b : b
|
|
>b.Sunday : b
|
|
>b : typeof b
|
|
>Sunday : b
|
|
}
|
|
|