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