lean4-htt/tests/lean/run/stxKindInsideNamespace.lean
2020-11-05 17:20:41 -08:00

21 lines
258 B
Text

import Lean
namespace Foo
syntax[foo] "bla!" term : term
macro_rules[foo]
| `(bla! $x) => pure x
#check bla! 10
macro "foo!" x:term : term => pure x
#check foo! 10
elab "boo!" x:term : term =>
Lean.Elab.Term.elabTerm x none
#check boo! 20
end Foo