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 string "arity_-1__7418@31425281" becomes f-n which is not= "fn" , therefore the when condition returns a demunged symbol for the anonym function insted of the correct nil value.
The
clojure.spec.alpha/form
function callsfn-sym
which returns a wrong value for anonym functions:https://github.com/babashka/spec.alpha/blob/babashka/src/main/clojure/clojure/spec/alpha.clj#L146-L150
Expected behavior:
The function should return
nil
for anonym functions.Current behavior:
Symbolic value of the function is returned, such as
sci.impl.fns/fun/arity-0
The regular expression and the
when
condition fails to ignore sci anonym functions.The string
"arity_-1__7418@31425281"
becomesf-n
which isnot= "fn"
, therefore the when condition returns a demunged symbol for the anonym function insted of the correctnil
value.Impact
(clojure.spec.alpha/form (fn [] true))
=>sci.impl.fns/fun/arity-0
This should be
:clojure.spec.alpha/undefined
as perhttps://github.com/babashka/spec.alpha/blob/babashka/src/main/clojure/clojure/spec/alpha.clj#L169
The text was updated successfully, but these errors were encountered: