mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
573 B
Plaintext
15 lines
573 B
Plaintext
//// [tests/cases/compiler/defaultParameterTrailingComments.ts] ////
|
|
|
|
=== defaultParameterTrailingComments.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(defaultParameterTrailingComments.ts, 0, 0))
|
|
|
|
constructor(defaultParam: boolean = false /* Emit only once*/) {}
|
|
>defaultParam : Symbol(defaultParam, Decl(defaultParameterTrailingComments.ts, 1, 16))
|
|
}
|
|
|
|
function foo(defaultParam = 10 /*emit only once*/) {}
|
|
>foo : Symbol(foo, Decl(defaultParameterTrailingComments.ts, 2, 1))
|
|
>defaultParam : Symbol(defaultParam, Decl(defaultParameterTrailingComments.ts, 4, 13))
|
|
|