17 lines
290 B
Plaintext
17 lines
290 B
Plaintext
|
=== tests/cases/compiler/functionWithDefaultParameterWithNoStatements11.ts ===
|
||
|
var v: any[];
|
||
|
>v : any[]
|
||
|
|
||
|
function foo(a = v[0]) { }
|
||
|
>foo : (a?: any) => void
|
||
|
>a : any
|
||
|
>v[0] : any
|
||
|
>v : any[]
|
||
|
|
||
|
function bar(a = v[0]) {
|
||
|
>bar : (a?: any) => void
|
||
|
>a : any
|
||
|
>v[0] : any
|
||
|
>v : any[]
|
||
|
}
|