Skip to content

Commit 4983252

Browse files
committed
Test case for trailing comment of enum
1 parent a9092c3 commit 4983252

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/baselines/reference/commentsEnums.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ enum Colors {
66
Cornflower /* blue */,
77
/** Fancy name for 'pink'*/
88
FancyPink
9-
}
9+
} // trailing comment
1010
var x = Colors.Cornflower;
1111
x = Colors.FancyPink;
1212

@@ -20,7 +20,7 @@ var Colors;
2020
Colors[Colors["Cornflower"] = 0] = "Cornflower"; /* blue */
2121
/** Fancy name for 'pink'*/
2222
Colors[Colors["FancyPink"] = 1] = "FancyPink";
23-
})(Colors || (Colors = {}));
23+
})(Colors || (Colors = {})); // trailing comment
2424
var x = 0 /* Cornflower */;
2525
x = 1 /* FancyPink */;
2626

tests/cases/compiler/commentsEnums.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ enum Colors {
88
Cornflower /* blue */,
99
/** Fancy name for 'pink'*/
1010
FancyPink
11-
}
11+
} // trailing comment
1212
var x = Colors.Cornflower;
1313
x = Colors.FancyPink;
1414

0 commit comments

Comments
 (0)