lean4-htt/tests/lean/run/name_resolution_at_tactic_execution_time.lean
Leonardo de Moura 0554fd5997 fix(frontends/lean): name resolution at tactic execution time
This commit also adds a new tactic: tactic.resolve_name

closes #1201
2016-11-24 10:55:39 -08:00

16 lines
250 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

structure Foo : Type := (foo : )
open Foo
set_option pp.all true
example (P : Prop) : P → P
| foo := by exact foo
example (P : Prop) : P → P
| bla :=
begin
rename bla foo,
exact foo
end
example (f : Foo) : nat :=
by exact foo f