2015-02-23 02:59:24 +01:00
|
|
|
=== 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))
|
2015-02-23 02:59:24 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-23 02:59:24 +01:00
|
|
|
>[1 + 1] : number[]
|
|
|
|
>1 + 1 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
|
|
|
>1 : number
|
2015-02-23 02:59:24 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-23 02:59:24 +01:00
|
|
|
>[1 + 1] : number[]
|
|
|
|
>1 + 1 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
|
|
|
>1 : number
|
2015-02-23 02:59:24 +01:00
|
|
|
}
|