mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
448 B
TypeScript
16 lines
448 B
TypeScript
//// [tests/cases/compiler/defaultParameterTrailingComments.ts] ////
|
|
|
|
//// [defaultParameterTrailingComments.ts]
|
|
class C {
|
|
constructor(defaultParam: boolean = false /* Emit only once*/) {}
|
|
}
|
|
|
|
function foo(defaultParam = 10 /*emit only once*/) {}
|
|
|
|
//// [defaultParameterTrailingComments.js]
|
|
"use strict";
|
|
class C {
|
|
constructor(defaultParam = false /* Emit only once*/) { }
|
|
}
|
|
function foo(defaultParam = 10 /*emit only once*/) { }
|