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