lean4-htt/tests/lean/run/175.lean
2022-10-19 09:28:08 -07:00

26 lines
479 B
Text

import Lean
namespace Foo
open Lean.Elab.Term
syntax (name := fooKind) "foo!" term : term
@[term_elab fooKind] def elabFoo : TermElab :=
fun stx expectedType? => elabTerm (stx.getArg 1) expectedType?
#check foo! 10
end Foo
namespace Lean
namespace Elab
namespace Tactic
open Meta
@[builtin_tactic clear] def myEvalClear : Tactic := -- this fails in the old-frontend because it eagerly resolves `clear` as `Lean.Meta.clear`.
fun _ => pure ()
end Tactic
end Elab
end Lean