Test case for trailing comment of enum

This commit is contained in:
Sheetal Nandi
2014-08-15 13:50:47 -07:00
parent a9092c331d
commit 4983252056
2 changed files with 3 additions and 3 deletions

View File

@@ -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 */;

View File

@@ -8,7 +8,7 @@ enum Colors {
Cornflower /* blue */,
/** Fancy name for 'pink'*/
FancyPink
}
} // trailing comment
var x = Colors.Cornflower;
x = Colors.FancyPink;