TypeScript/tests/baselines/reference/commentsEnums.types
Sheetal Nandi 6e4d0ef1ef Merge pull request #452 from Microsoft/emitComments
Emit comments in the .js and .d.ts files
2014-08-20 17:07:24 -07:00

30 lines
550 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
>x : Colors
>Colors.FancyPink : Colors
>Colors : typeof Colors
>FancyPink : Colors