mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
634 B
Plaintext
15 lines
634 B
Plaintext
//// [tests/cases/compiler/functionWithDefaultParameterWithNoStatements13.ts] ////
|
|
|
|
=== 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))
|
|
}
|