summaryrefslogtreecommitdiff
path: root/tests/specs/run/keep_comments_ts/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/keep_comments_ts/main.ts')
-rw-r--r--tests/specs/run/keep_comments_ts/main.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/specs/run/keep_comments_ts/main.ts b/tests/specs/run/keep_comments_ts/main.ts
new file mode 100644
index 000000000..ff58eff2e
--- /dev/null
+++ b/tests/specs/run/keep_comments_ts/main.ts
@@ -0,0 +1,7 @@
+function test() {
+ // this comment should be in output
+ return 1 + 1;
+}
+
+// should include the comments because people rely on this behavior
+console.log(test.toString());