TypeScript/tests/cases/compiler/declarationEmitDestructuring4.ts
2015-03-24 10:11:29 -07:00

12 lines
338 B
TypeScript

// @declaration: true
// For an array binding pattern with empty elements,
// we will not make any modification and will emit
// the similar binding pattern users' have written
function baz([]) { }
function baz1([] = [1,2,3]) { }
function baz2([[]] = [[1,2,3]]) { }
function baz3({}) { }
function baz4({} = { x: 10 }) { }