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
uname -a
Darwin AmbrosesMBP2020.lan 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64
problem
satisfies? should return true if the value implements the protocol. If the value implements the protocol via extend AND the protocol has zero methods, returns false incorrectly.
repro
./bb
Babashka v0.8.3-SNAPSHOT REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (defprotocol Marker)
#'user/Marker
user=> (defrecord R [])
#'user/R
user=> (extend-type R Marker)
nil
user=> (satisfies? Marker (R.))
false
version
platform
problem
satisfies?
should return true if the value implements the protocol. If the value implements the protocol viaextend
AND the protocol has zero methods, returns false incorrectly.repro
expected behavior
The text was updated successfully, but these errors were encountered: