onlyReduceDefs
should not prevent evaluation of macros
#5469
Labels
reflection
Elaborator reflection, macros, tactic arguments
type: bug
Issues and pull requests about actual bugs
Milestone
Consider the following example code:
The
TC
actionmake2 hole
unifies the hole with the normalization of1 + 1
, and in the macrotester
this is called insideonlyReduceDefs (quote _+_ ∷ [])
. I would thus expect calling this macro would produce the term2
. However, we get an error instead:What I think is happening is that the call to
onlyReduceDefs
prevents the call tomake2
from being evaluated. This is unexpected, sinceonlyReduceDefs
should only have an effect on calls to primitiveTC
operations such asreduce
andnormalise
, not on the evaluation of the macro itself.The text was updated successfully, but these errors were encountered: