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