lean4-htt/tests/lean/bad_error4.lean
Leonardo de Moura 31a0d7d520 feat(frontends/lean/elaborator): catch exception at is_def_eq
@semorrison this commit improves the bad error message you have
reported at lean-user. It is not perfect since the user has to
remember the position of the structure field in the constructor.
2017-01-06 08:16:51 -08:00

5 lines
79 B
Text

structure foo :=
(f: unit -> unit)
definition bar : foo :=
{ f := λ a b, _ }