2015-01-05 22:22:15 +01:00
|
|
|
=== tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts ===
|
|
|
|
var lambda1 = (y = "hello") => { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>lambda1 : (y?: string) => void, Symbol(lambda1, Decl(emitDefaultParametersFunctionExpression.ts, 0, 3))
|
2015-01-05 22:22:15 +01:00
|
|
|
>(y = "hello") => { } : (y?: string) => void
|
2015-04-13 23:01:57 +02:00
|
|
|
>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 0, 15))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
2015-01-05 22:22:15 +01:00
|
|
|
|
|
|
|
var lambda2 = (x: number, y = "hello") => { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>lambda2 : (x: number, y?: string) => void, Symbol(lambda2, Decl(emitDefaultParametersFunctionExpression.ts, 1, 3))
|
2015-01-05 22:22:15 +01:00
|
|
|
>(x: number, y = "hello") => { } : (x: number, y?: string) => void
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 1, 15))
|
|
|
|
>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 1, 25))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
2015-01-05 22:22:15 +01:00
|
|
|
|
|
|
|
var lambda3 = (x: number, y = "hello", ...rest) => { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>lambda3 : (x: number, y?: string, ...rest: any[]) => void, Symbol(lambda3, Decl(emitDefaultParametersFunctionExpression.ts, 2, 3))
|
2015-01-05 22:22:15 +01:00
|
|
|
>(x: number, y = "hello", ...rest) => { } : (x: number, y?: string, ...rest: any[]) => void
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 2, 15))
|
|
|
|
>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 2, 25))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 2, 38))
|
2015-01-05 22:22:15 +01:00
|
|
|
|
|
|
|
var lambda4 = (y = "hello", ...rest) => { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>lambda4 : (y?: string, ...rest: any[]) => void, Symbol(lambda4, Decl(emitDefaultParametersFunctionExpression.ts, 3, 3))
|
2015-01-05 22:22:15 +01:00
|
|
|
>(y = "hello", ...rest) => { } : (y?: string, ...rest: any[]) => void
|
2015-04-13 23:01:57 +02:00
|
|
|
>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 3, 15))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 3, 27))
|
2015-01-05 22:22:15 +01:00
|
|
|
|
|
|
|
var x = function (str = "hello", ...rest) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : (str?: string, ...rest: any[]) => void, Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 5, 3))
|
2015-01-05 22:22:15 +01:00
|
|
|
>function (str = "hello", ...rest) { } : (str?: string, ...rest: any[]) => void
|
2015-04-13 23:01:57 +02:00
|
|
|
>str : string, Symbol(str, Decl(emitDefaultParametersFunctionExpression.ts, 5, 18))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 5, 32))
|
2015-01-05 22:22:15 +01:00
|
|
|
|
|
|
|
var y = (function (num = 10, boo = false, ...rest) { })()
|
2015-04-13 23:01:57 +02:00
|
|
|
>y : void, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 6, 3))
|
2015-01-05 22:22:15 +01:00
|
|
|
>(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
|
2015-04-13 23:01:57 +02:00
|
|
|
>num : number, Symbol(num, Decl(emitDefaultParametersFunctionExpression.ts, 6, 19))
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>boo : boolean, Symbol(boo, Decl(emitDefaultParametersFunctionExpression.ts, 6, 28))
|
2015-04-13 21:36:11 +02:00
|
|
|
>false : boolean
|
2015-04-13 23:01:57 +02:00
|
|
|
>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 6, 41))
|
2015-01-05 22:22:15 +01:00
|
|
|
|
|
|
|
var z = (function (num: number, boo = false, ...rest) { })(10)
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : void, Symbol(z, Decl(emitDefaultParametersFunctionExpression.ts, 7, 3))
|
2015-01-05 22:22:15 +01:00
|
|
|
>(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
|
2015-04-13 23:01:57 +02:00
|
|
|
>num : number, Symbol(num, Decl(emitDefaultParametersFunctionExpression.ts, 7, 19))
|
|
|
|
>boo : boolean, Symbol(boo, Decl(emitDefaultParametersFunctionExpression.ts, 7, 31))
|
2015-04-13 21:36:11 +02:00
|
|
|
>false : boolean
|
2015-04-13 23:01:57 +02:00
|
|
|
>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 7, 44))
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2015-01-05 22:22:15 +01:00
|
|
|
|