lean4-htt/tests/lean/local_ref_bugs.lean
2016-12-15 15:11:24 -08:00

47 lines
699 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.

set_option pp.all true
section
parameter α : Type
inductive foo : Type | a : α → foo | b
check (foo.b : foo)
open foo
check (foo.b : foo)
check (b : foo)
open tactic
include α
example : true :=
by do
e ← to_expr `(b),
t ← infer_type e,
trace "-------",
trace e,
trace t,
trace "-------",
triv
def ex : foo := begin trace_state, exact b end
end
namespace bla
section
parameter α : Type
inductive foo : Type | a : α → foo | b
check (foo.b : foo)
open foo
check (foo.b : foo)
check (b : foo)
end
end bla
namespace boo
section
parameter α : Type
inductive foo : Type | a : α → foo | b
check (foo.b : foo)
open foo (b)
check (foo.b : foo)
check (b : foo)
end
end boo