mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
571 B
TypeScript
30 lines
571 B
TypeScript
// @strict: false
|
|
// @removeComments: true
|
|
|
|
function t1() {
|
|
if (this.a < 2) { // comment after if
|
|
console.log('t1', this.a)
|
|
|
|
// comment after empty line in if block
|
|
}
|
|
}
|
|
|
|
function t2() {
|
|
console.log("t2");
|
|
|
|
const obj = // comment here
|
|
{
|
|
a: 1, // comment a
|
|
b: 2, // comment b
|
|
c: 3, // comment c (removed)
|
|
}
|
|
|
|
console.log(
|
|
"test", // comment 1
|
|
{
|
|
a: this.a, // comment a
|
|
b: this.b, // comment b
|
|
c: this.c, // comment c (removed)
|
|
}, obj)
|
|
}
|