Conflicts: tests/baselines/reference/iterableArrayPattern14.types tests/baselines/reference/iterableArrayPattern15.types tests/baselines/reference/iterableArrayPattern20.types tests/baselines/reference/iterableArrayPattern27.types
14 lines
271 B
Text
14 lines
271 B
Text
=== tests/cases/conformance/es6/destructuring/nonIterableRestElement1.ts ===
|
|
var c = {};
|
|
>c : {}
|
|
>{} : {}
|
|
|
|
[...c] = ["", 0];
|
|
>[...c] = ["", 0] : (string | number)[]
|
|
>[...c] : {}[]
|
|
>...c : any
|
|
>c : {}
|
|
>["", 0] : (string | number)[]
|
|
>"" : string
|
|
>0 : number
|
|
|