58 lines
3.5 KiB
Text
58 lines
3.5 KiB
Text
=== tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts ===
|
|
var lambda1 = (y = "hello") => { }
|
|
>lambda1 : (y?: string) => void, Symbol(lambda1,Decl(emitDefaultParametersFunctionExpression.ts,0,3))
|
|
>(y = "hello") => { } : (y?: string) => void
|
|
>y : string, Symbol(y,Decl(emitDefaultParametersFunctionExpression.ts,0,15))
|
|
>"hello" : string
|
|
|
|
var lambda2 = (x: number, y = "hello") => { }
|
|
>lambda2 : (x: number, y?: string) => void, Symbol(lambda2,Decl(emitDefaultParametersFunctionExpression.ts,1,3))
|
|
>(x: number, y = "hello") => { } : (x: number, y?: string) => void
|
|
>x : number, Symbol(x,Decl(emitDefaultParametersFunctionExpression.ts,1,15))
|
|
>y : string, Symbol(y,Decl(emitDefaultParametersFunctionExpression.ts,1,25))
|
|
>"hello" : string
|
|
|
|
var lambda3 = (x: number, y = "hello", ...rest) => { }
|
|
>lambda3 : (x: number, y?: string, ...rest: any[]) => void, Symbol(lambda3,Decl(emitDefaultParametersFunctionExpression.ts,2,3))
|
|
>(x: number, y = "hello", ...rest) => { } : (x: number, y?: string, ...rest: any[]) => void
|
|
>x : number, Symbol(x,Decl(emitDefaultParametersFunctionExpression.ts,2,15))
|
|
>y : string, Symbol(y,Decl(emitDefaultParametersFunctionExpression.ts,2,25))
|
|
>"hello" : string
|
|
>rest : any[], Symbol(rest,Decl(emitDefaultParametersFunctionExpression.ts,2,38))
|
|
|
|
var lambda4 = (y = "hello", ...rest) => { }
|
|
>lambda4 : (y?: string, ...rest: any[]) => void, Symbol(lambda4,Decl(emitDefaultParametersFunctionExpression.ts,3,3))
|
|
>(y = "hello", ...rest) => { } : (y?: string, ...rest: any[]) => void
|
|
>y : string, Symbol(y,Decl(emitDefaultParametersFunctionExpression.ts,3,15))
|
|
>"hello" : string
|
|
>rest : any[], Symbol(rest,Decl(emitDefaultParametersFunctionExpression.ts,3,27))
|
|
|
|
var x = function (str = "hello", ...rest) { }
|
|
>x : (str?: string, ...rest: any[]) => void, Symbol(x,Decl(emitDefaultParametersFunctionExpression.ts,5,3))
|
|
>function (str = "hello", ...rest) { } : (str?: string, ...rest: any[]) => void
|
|
>str : string, Symbol(str,Decl(emitDefaultParametersFunctionExpression.ts,5,18))
|
|
>"hello" : string
|
|
>rest : any[], Symbol(rest,Decl(emitDefaultParametersFunctionExpression.ts,5,32))
|
|
|
|
var y = (function (num = 10, boo = false, ...rest) { })()
|
|
>y : void, Symbol(y,Decl(emitDefaultParametersFunctionExpression.ts,6,3))
|
|
>(function (num = 10, boo = false, ...rest) { })() : void
|
|
>(function (num = 10, boo = false, ...rest) { }) : (num?: number, boo?: boolean, ...rest: any[]) => void
|
|
>function (num = 10, boo = false, ...rest) { } : (num?: number, boo?: boolean, ...rest: any[]) => void
|
|
>num : number, Symbol(num,Decl(emitDefaultParametersFunctionExpression.ts,6,19))
|
|
>10 : number
|
|
>boo : boolean, Symbol(boo,Decl(emitDefaultParametersFunctionExpression.ts,6,28))
|
|
>false : boolean
|
|
>rest : any[], Symbol(rest,Decl(emitDefaultParametersFunctionExpression.ts,6,41))
|
|
|
|
var z = (function (num: number, boo = false, ...rest) { })(10)
|
|
>z : void, Symbol(z,Decl(emitDefaultParametersFunctionExpression.ts,7,3))
|
|
>(function (num: number, boo = false, ...rest) { })(10) : void
|
|
>(function (num: number, boo = false, ...rest) { }) : (num: number, boo?: boolean, ...rest: any[]) => void
|
|
>function (num: number, boo = false, ...rest) { } : (num: number, boo?: boolean, ...rest: any[]) => void
|
|
>num : number, Symbol(num,Decl(emitDefaultParametersFunctionExpression.ts,7,19))
|
|
>boo : boolean, Symbol(boo,Decl(emitDefaultParametersFunctionExpression.ts,7,31))
|
|
>false : boolean
|
|
>rest : any[], Symbol(rest,Decl(emitDefaultParametersFunctionExpression.ts,7,44))
|
|
>10 : number
|
|
|