mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-21 08:25:43 -05:00
Test case for trailing comment of enum
This commit is contained in:
@@ -6,7 +6,7 @@ enum Colors {
|
||||
Cornflower /* blue */,
|
||||
/** Fancy name for 'pink'*/
|
||||
FancyPink
|
||||
}
|
||||
} // trailing comment
|
||||
var x = Colors.Cornflower;
|
||||
x = Colors.FancyPink;
|
||||
|
||||
@@ -20,7 +20,7 @@ var Colors;
|
||||
Colors[Colors["Cornflower"] = 0] = "Cornflower"; /* blue */
|
||||
/** Fancy name for 'pink'*/
|
||||
Colors[Colors["FancyPink"] = 1] = "FancyPink";
|
||||
})(Colors || (Colors = {}));
|
||||
})(Colors || (Colors = {})); // trailing comment
|
||||
var x = 0 /* Cornflower */;
|
||||
x = 1 /* FancyPink */;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ enum Colors {
|
||||
Cornflower /* blue */,
|
||||
/** Fancy name for 'pink'*/
|
||||
FancyPink
|
||||
}
|
||||
} // trailing comment
|
||||
var x = Colors.Cornflower;
|
||||
x = Colors.FancyPink;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user