Zulip Chat Archive
Stream: lean4
Topic: names in `@[term_elab]`
Eric Wieser (Jul 11 2025 at 17:55):
Is this expected behavior?
import Lean
namespace Bar
scoped syntax:74 (name := _root_.foo) "foo " term:75 : term
end Bar
@[term_elab _root_.foo] -- fails
def elabFoo : Lean.Elab.Term.TermElab := sorry
@[term_elab Bar._root_.foo] -- works
def elabFoo' : Lean.Elab.Term.TermElab := sorry
Last updated: Dec 20 2025 at 21:32 UTC