binding-form spec parses symbol-only maps incorrectly

Description

The :clojure.core.specs/binding-form spec incorrectly treats some maps as sequential bindings.

Actual:

Expected:

Cause:

When there is no :keys, :strs, or :syms from :clojure.core.specs/map-special-binding, then :clojure.core.specs/seq-binding-form treats a map as sequential.

Proposed fix:

Include an (s/and vector? ...) check. See patch.

Patch: CLJ-2055-01.patch
Screened by: Alex Miller

Environment

1.9.0-alpha14

Attachments

1

Activity

Show:
Completed

Details

Assignee

Reporter

Labels

Approval

Patch

Priority

Affects versions

Fix versions

Created November 8, 2016 at 11:19 PM
Updated March 14, 2017 at 11:57 AM
Resolved March 14, 2017 at 11:57 AM