TSC strips certain comments in object literal #13939
Labels
Bug
A bug in TypeScript
Domain: Comment Emit
The issue relates to the emission of comments when compiling
Duplicate
An existing issue was already created
TypeScript Version: 2.1.5
When using comments in an object literal, TSC appears to strip any comments following commas. For example (TypeScript Playground):
Expected behavior (compiled JavaScript):
Actual behavior (compiled JavaScript):
This issue has been ported from #13602 (comment).
The text was updated successfully, but these errors were encountered: