lean4-htt/tests/lean/as_is_leak_bug.lean
Leonardo de Moura 3fa487c153 fix(frontends/lean/decl_util): as-is annotation was leaking into elaborated terms
@kha This commit fixes the repro you sent me. Could you please check
whether it also fixes the original file?
2018-01-30 12:48:48 -08:00

14 lines
218 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.

section
set_option pp.annotations true
parameters {α : Type} [has_to_string α]
def f (a : α) : string := to_string a
def g := f
def g' := (f, α)
def h := (f, g, g', α)
#print f
#print g
#print g'
#print h
end