You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following spec however fails with "invalid function arguments" in clj (expected behavior) and succeeds silently (that is, it doesn't throw any error) in cljs (this is surprising to me).
My initial assessment is that because m/-function-info returns :varargs for [:=> [:cat :int [:? :int] :string] :keyword], the cljs$core$IFn$_invoke$arity$variadic arity is wrapped instead of the cljs$core$IFn$_invoke$arity$ arity.
Hi there,
I encountered a discrepancy in the behavior of multi-arity schemas in clj vs cljs, seems like a bug.
In the following example, the spec is defined with the documented syntax for multi-arity functions. This fails both in clj and cljs, as expected, so far so good.
The following spec however fails with "invalid function arguments" in clj (expected behavior) and succeeds silently (that is, it doesn't throw any error) in cljs (this is surprising to me).
The text was updated successfully, but these errors were encountered: