2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/internalAliasEnumInsideTopLevelModuleWithoutExport.ts ===
|
|
|
|
export module a {
|
2014-08-28 21:40:58 +02:00
|
|
|
>a : typeof a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export enum weekend {
|
|
|
|
>weekend : weekend
|
|
|
|
|
|
|
|
Friday,
|
|
|
|
>Friday : weekend
|
|
|
|
|
|
|
|
Saturday,
|
|
|
|
>Saturday : weekend
|
|
|
|
|
|
|
|
Sunday
|
|
|
|
>Sunday : weekend
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
import b = a.weekend;
|
2014-08-28 21:40:58 +02:00
|
|
|
>b : typeof b
|
2014-08-19 04:56:03 +02:00
|
|
|
>a : typeof a
|
2014-08-25 19:36:12 +02:00
|
|
|
>weekend : b
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var bVal: b = b.Sunday;
|
2014-08-25 19:36:12 +02:00
|
|
|
>bVal : b
|
|
|
|
>b : b
|
|
|
|
>b.Sunday : b
|
|
|
|
>b : typeof b
|
|
|
|
>Sunday : b
|
2014-08-15 23:33:16 +02:00
|
|
|
|