test: add test for local macro in auto tactic

This commit is contained in:
Leonardo de Moura 2023-01-04 09:00:45 -08:00
parent 6fea2946c2
commit 7bd005bbbe
2 changed files with 8 additions and 0 deletions

View file

@ -10,3 +10,6 @@ open Lean Meta
IO.println <| (← getEnv).getModuleIdxFor? ``foo
IO.println <| (← getEnv).getModuleIdxFor? `auxDecl1
IO.println "worked"
set_option pp.all true
#check f 10 10

View file

@ -11,3 +11,8 @@ def foo := 42
local infix:50 " ≺ " => LE.le
#check 1 ≺ 2
local macro "my_refl" : tactic =>
`(tactic| rfl)
def f (x y : Nat) (_h : x = y := by my_refl) := x