TypeScript/tests/baselines/reference/internalAliasEnum.types

35 lines
461 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/internalAliasEnum.ts ===
module a {
>a : typeof a
2014-08-15 23:33:16 +02:00
export enum weekend {
>weekend : weekend
2014-08-15 23:33:16 +02:00
Friday,
>Friday : weekend
2014-08-15 23:33:16 +02:00
Saturday,
>Saturday : weekend
2014-08-15 23:33:16 +02:00
Sunday
>Sunday : weekend
2014-08-15 23:33:16 +02:00
}
}
module c {
>c : typeof c
2014-08-15 23:33:16 +02:00
import b = a.weekend;
>b : typeof b
>a : typeof a
>weekend : b
2014-08-15 23:33:16 +02:00
export var bVal: b = b.Sunday;
>bVal : b
>b : b
>b.Sunday : b
>b : typeof b
>Sunday : b
2014-08-15 23:33:16 +02:00
}