TypeScript/tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts

12 lines
147 B
TypeScript
Raw Normal View History

2015-02-22 04:33:53 +01:00
function foo1([...r] = null) {
}
function foo2([...r] = undefined) {
}
function foo3([...r] = {}) {
}
function foo4([...r] = []) {
}