2015-01-05 22:22:15 +01:00
|
|
|
//// [emitDefaultParametersFunctionES6.ts]
|
|
|
|
function foo(x: string, y = 10) { }
|
|
|
|
function baz(x: string, y = 5, ...rest) { }
|
|
|
|
function bar(y = 10) { }
|
|
|
|
function bar1(y = 10, ...rest) { }
|
|
|
|
|
|
|
|
//// [emitDefaultParametersFunctionES6.js]
|
2015-02-07 03:45:09 +01:00
|
|
|
function foo(x, y = 10) { }
|
|
|
|
function baz(x, y = 5, ...rest) { }
|
|
|
|
function bar(y = 10) { }
|
|
|
|
function bar1(y = 10, ...rest) { }
|