42 lines
591 B
Plaintext
42 lines
591 B
Plaintext
|
=== tests/cases/compiler/declFileTypeofEnum.ts ===
|
||
|
|
||
|
enum days {
|
||
|
>days : days
|
||
|
|
||
|
monday,
|
||
|
>monday : days
|
||
|
|
||
|
tuesday,
|
||
|
>tuesday : days
|
||
|
|
||
|
wednesday,
|
||
|
>wednesday : days
|
||
|
|
||
|
thursday,
|
||
|
>thursday : days
|
||
|
|
||
|
friday,
|
||
|
>friday : days
|
||
|
|
||
|
saturday,
|
||
|
>saturday : days
|
||
|
|
||
|
sunday
|
||
|
>sunday : days
|
||
|
}
|
||
|
|
||
|
var weekendDay = days.saturday;
|
||
|
>weekendDay : days
|
||
|
>days.saturday : days
|
||
|
>days : typeof days
|
||
|
>saturday : days
|
||
|
|
||
|
var daysOfMonth = days;
|
||
|
>daysOfMonth : typeof days
|
||
|
>days : typeof days
|
||
|
|
||
|
var daysOfYear: typeof days;
|
||
|
>daysOfYear : typeof days
|
||
|
>days : typeof days
|
||
|
|