TypeScript/tests/baselines/reference/commentsEnums.types
2016-07-22 16:56:33 -07:00

30 lines
580 B
Plaintext

=== 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
} // trailing comment
var x = Colors.Cornflower;
>x : Colors
>Colors.Cornflower : Colors
>Colors : typeof Colors
>Cornflower : Colors
x = Colors.FancyPink;
>x = Colors.FancyPink : Colors.FancyPink
>x : Colors
>Colors.FancyPink : Colors.FancyPink
>Colors : typeof Colors
>FancyPink : Colors.FancyPink