mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
471 B
TypeScript
15 lines
471 B
TypeScript
//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionES6.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|
|
function foo(x, y = 10) { }
|
|
function baz(x, y = 5, ...rest) { }
|
|
function bar(y = 10) { }
|
|
function bar1(y = 10, ...rest) { }
|