TypeScript/tests/baselines/reference/commentsEnums.types

30 lines
550 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/commentsEnums.ts ===
/** Enum of colors*/
enum Colors {
>Colors : Colors
2014-08-15 23:33:16 +02:00
/** Fancy name for 'blue'*/
Cornflower /* blue */,
>Cornflower : Colors
2014-08-15 23:33:16 +02:00
/** Fancy name for 'pink'*/
FancyPink
>FancyPink : Colors
} // trailing comment
2014-08-15 23:33:16 +02:00
var x = Colors.Cornflower;
>x : Colors
>Colors.Cornflower : Colors
>Colors : typeof Colors
>Cornflower : Colors
2014-08-15 23:33:16 +02:00
x = Colors.FancyPink;
>x = Colors.FancyPink : Colors
>x : Colors
>Colors.FancyPink : Colors
>Colors : typeof Colors
>FancyPink : Colors
2014-08-15 23:33:16 +02:00