12 lines
263 B
Plaintext
12 lines
263 B
Plaintext
|
=== tests/cases/compiler/functionWithDefaultParameterWithNoStatements10.ts ===
|
||
|
function foo(a = [0]) { }
|
||
|
>foo : (a?: number[]) => void
|
||
|
>a : number[]
|
||
|
>[0] : number[]
|
||
|
|
||
|
function bar(a = [0]) {
|
||
|
>bar : (a?: number[]) => void
|
||
|
>a : number[]
|
||
|
>[0] : number[]
|
||
|
}
|