TypeScript/tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts
2015-02-21 19:33:53 -08:00

12 lines
147 B
TypeScript

function foo1([...r] = null) {
}
function foo2([...r] = undefined) {
}
function foo3([...r] = {}) {
}
function foo4([...r] = []) {
}