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