TypeScript/tests/baselines/reference/typeofEnum.types

21 lines
205 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/typeofEnum.ts ===
enum E {
>E : E
2014-08-15 23:33:16 +02:00
e1,
>e1 : E
2014-08-15 23:33:16 +02:00
e2
>e2 : E
2014-08-15 23:33:16 +02:00
}
var e1: typeof E;
>e1 : typeof E
>E : typeof E
2014-08-15 23:33:16 +02:00
e1.e1;
>e1.e1 : E
>e1 : typeof E
>e1 : E
2014-08-15 23:33:16 +02:00