TypeScript/tests/cases/compiler/commentsEnums.ts

15 lines
291 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// @target: ES5
// @declaration: true
// @removeComments: false
2014-07-13 01:04:16 +02:00
/** Enum of colors*/
enum Colors {
/** Fancy name for 'blue'*/
Cornflower /* blue */,
/** Fancy name for 'pink'*/
FancyPink
2014-08-15 22:50:47 +02:00
} // trailing comment
2014-07-13 01:04:16 +02:00
var x = Colors.Cornflower;
x = Colors.FancyPink;