mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
6 lines
189 B
JavaScript
6 lines
189 B
JavaScript
var { "key": val } = { key: "val" };
|
|
(val: void); // error: string ~> void
|
|
|
|
var { "with-dash": with_dash } = { "with-dash": "motivating example" };
|
|
(with_dash: "motivating example"); // ok
|