36 lines
622 B
Text
36 lines
622 B
Text
|
=== tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES6.ts ===
|
||
|
|
||
|
var a: any;
|
||
|
>a : any
|
||
|
|
||
|
let x, y, z, a1, a2, a3;
|
||
|
>x : any
|
||
|
>y : any
|
||
|
>z : any
|
||
|
>a1 : any
|
||
|
>a2 : any
|
||
|
>a3 : any
|
||
|
|
||
|
({} = { x, y, z } = a);
|
||
|
>({} = { x, y, z } = a) : any
|
||
|
>{} = { x, y, z } = a : any
|
||
|
>{} : {}
|
||
|
>{ x, y, z } = a : any
|
||
|
>{ x, y, z } : { x: any; y: any; z: any; }
|
||
|
>x : any
|
||
|
>y : any
|
||
|
>z : any
|
||
|
>a : any
|
||
|
|
||
|
([] = [ a1, a2, a3] = a);
|
||
|
>([] = [ a1, a2, a3] = a) : any
|
||
|
>[] = [ a1, a2, a3] = a : any
|
||
|
>[] : undefined[]
|
||
|
>[ a1, a2, a3] = a : any
|
||
|
>[ a1, a2, a3] : [any, any, any]
|
||
|
>a1 : any
|
||
|
>a2 : any
|
||
|
>a3 : any
|
||
|
>a : any
|
||
|
|