mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
481 B
TypeScript
21 lines
481 B
TypeScript
//// [tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter04.ts] ////
|
|
|
|
//// [emptyObjectBindingPatternParameter04.ts]
|
|
function f({} = {a: 1, b: "2", c: true}) {
|
|
var x, y, z;
|
|
}
|
|
|
|
//// [emptyObjectBindingPatternParameter04.js]
|
|
"use strict";
|
|
function f({} = { a: 1, b: "2", c: true }) {
|
|
var x, y, z;
|
|
}
|
|
|
|
|
|
//// [emptyObjectBindingPatternParameter04.d.ts]
|
|
declare function f({}?: {
|
|
a: number;
|
|
b: string;
|
|
c: boolean;
|
|
}): void;
|