13 lines
569 B
Plaintext
13 lines
569 B
Plaintext
|
=== tests/cases/compiler/functionWithDefaultParameterWithNoStatements13.ts ===
|
||
|
var v: any[];
|
||
|
>v : Symbol(v, Decl(functionWithDefaultParameterWithNoStatements13.ts, 0, 3))
|
||
|
|
||
|
function foo(a = [1 + 1]) { }
|
||
|
>foo : Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements13.ts, 0, 13))
|
||
|
>a : Symbol(a, Decl(functionWithDefaultParameterWithNoStatements13.ts, 2, 13))
|
||
|
|
||
|
function bar(a = [1 + 1]) {
|
||
|
>bar : Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements13.ts, 2, 29))
|
||
|
>a : Symbol(a, Decl(functionWithDefaultParameterWithNoStatements13.ts, 4, 13))
|
||
|
}
|