TypeScript/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionES6.ts

5 lines
161 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) { }