[core.specs] spec for fn does not allow anonymous function name
In the following macro code fragment, the function ID `fixture-fn` causes the anonymous function to fail clojure.spec:
When function name fixture-fn is absent, compilation proceeds and clojure.spec works fine. When function name is present,
the error message is:
You are correct. Using
solved the issue.
Going to decline this as I believe the issue is in the code, not the spec. If it's not this, please re-open.
I'm about 99% sure this is the issue. A minimal repro would be something like:
which should just be:
The problem here I think is that the syntax quote will fully resolve fixture-fn and the spec requires an unqualified symbol in a function name. You can easily fix that by preventing resolution but leaving the symbol:
Would appreciate if you could try that and see if it works.
Fixed the formatting for you