swc/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionES6.ts

5 lines
154 B
TypeScript

// @target:es6
function foo(x: string, y = 10) { }
function baz(x: string, y = 5, ...rest) { }
function bar(y = 10) { }
function bar1(y = 10, ...rest) { }