TypeScript/tests/baselines/reference/commentsEnums.types

30 lines
1.1 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/commentsEnums.ts ===
/** Enum of colors*/
enum Colors {
2015-04-13 23:01:57 +02:00
>Colors : Colors, Symbol(Colors, Decl(commentsEnums.ts, 0, 0))
2014-08-15 23:33:16 +02:00
/** Fancy name for 'blue'*/
Cornflower /* blue */,
2015-04-13 23:01:57 +02:00
>Cornflower : Colors, Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 2, 13))
2014-08-15 23:33:16 +02:00
/** Fancy name for 'pink'*/
FancyPink
2015-04-13 23:01:57 +02:00
>FancyPink : Colors, Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 4, 26))
} // trailing comment
2014-08-15 23:33:16 +02:00
var x = Colors.Cornflower;
2015-04-13 23:01:57 +02:00
>x : Colors, Symbol(x, Decl(commentsEnums.ts, 8, 3))
>Colors.Cornflower : Colors, Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 2, 13))
>Colors : typeof Colors, Symbol(Colors, Decl(commentsEnums.ts, 0, 0))
>Cornflower : Colors, Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 2, 13))
2014-08-15 23:33:16 +02:00
x = Colors.FancyPink;
>x = Colors.FancyPink : Colors
2015-04-13 23:01:57 +02:00
>x : Colors, Symbol(x, Decl(commentsEnums.ts, 8, 3))
>Colors.FancyPink : Colors, Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 4, 26))
>Colors : typeof Colors, Symbol(Colors, Decl(commentsEnums.ts, 0, 0))
>FancyPink : Colors, Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 4, 26))
2014-08-15 23:33:16 +02:00