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
repro
Here's my attempt at distilling the issue to a file we'll call metaeval.clj:
(defn ^{:test (fn []
(println"hey there from af meta fn")
(af))}
af []
(println"hi from af"))
(println"call af:")
(af)
(println"\ncall af :test fn:")
((:test (meta #'af)))
expected behavior
If we run the above code through Clojure, all works as expected:
> clojure metaeval.clj
call af:
hi from af
call af :test fn:
hey there from af meta fn
hi from af
actual behaviour
Running the same code through sci gives us:
version
0.1.1-alpha.2
platform
macOS 10.15.5
Clojure 1.10.536 on JDK 11
symptom
When metadata :test on (defn x) is a function and that function calls x, x cannot be resolved.
This use case occurs in test.check's
defspec
.repro
Here's my attempt at distilling the issue to a file we'll call
metaeval.clj
:expected behavior
If we run the above code through Clojure, all works as expected:
actual behaviour
Running the same code through sci gives us:
Notice that
af
could not be resolved within the meta:test
function.The text was updated successfully, but these errors were encountered: