lean4-htt/tests/lean/emptyc.lean
Leonardo de Moura 151012cb39 feat: remove emptyc elaboration hack
@Kha I removed the hack. We know get a nice error message.
2020-09-11 14:41:44 -07:00

19 lines
220 B
Text

new_frontend
structure A :=
(x : Nat := 0)
def foo : A :=
{}
theorem ex1 : foo = { x := 0 } :=
rfl
theorem ex2 : foo.x = 0 :=
rfl
instance : HasEmptyc A :=
⟨{ x := 10 }⟩
def boo : A :=
{} -- this is ambiguous