18 lines
402 B
Text
18 lines
402 B
Text
=== tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter04.ts ===
|
|
|
|
|
|
function f({} = {a: 1, b: "2", c: true}) {
|
|
>f : ({}?: { a: number; b: string; c: boolean; }) => void
|
|
>{a: 1, b: "2", c: true} : { a: number; b: string; c: boolean; }
|
|
>a : number
|
|
>1 : number
|
|
>b : string
|
|
>"2" : string
|
|
>c : boolean
|
|
>true : boolean
|
|
|
|
var x, y, z;
|
|
>x : any
|
|
>y : any
|
|
>z : any
|
|
}
|