{:as x} destructuring with an empty list raises exception

Description

The bug was introduced by a change[1] to support duplicate keys in map
destructuring. Using PersistentHashMap/create here introduces the above
bug, since it does not properly handle empty lists.

[1]: https://github.com/clojure/clojure/commit/93c795fe10ee5c92a36b6ec6373b3c80a31135c4

Environment

None

Assignee

Unassigned

Reporter

tcrawley

Labels

None

Approval

Ok

Patch

Code and Test

Fix versions

Affects versions

Priority

Major
Configure