TypeScript/tests/baselines/reference/functionWithDefaultParameterWithNoStatements13.types

21 lines
772 B
Text
Raw Normal View History

=== tests/cases/compiler/functionWithDefaultParameterWithNoStatements13.ts ===
var v: any[];
2015-04-13 23:01:57 +02:00
>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements13.ts, 0, 3))
function foo(a = [1 + 1]) { }
2015-04-13 23:01:57 +02:00
>foo : (a?: number[]) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements13.ts, 0, 13))
>a : number[], Symbol(a, Decl(functionWithDefaultParameterWithNoStatements13.ts, 2, 13))
>[1 + 1] : number[]
>1 + 1 : number
2015-04-13 21:36:11 +02:00
>1 : number
>1 : number
function bar(a = [1 + 1]) {
2015-04-13 23:01:57 +02:00
>bar : (a?: number[]) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements13.ts, 2, 29))
>a : number[], Symbol(a, Decl(functionWithDefaultParameterWithNoStatements13.ts, 4, 13))
>[1 + 1] : number[]
>1 + 1 : number
2015-04-13 21:36:11 +02:00
>1 : number
>1 : number
}