lean4-htt/tests/lean/bad_error4.lean.expected.out
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

8 lines
278 B
Text

bad_error4.lean:5:0: error: type mismatch at application
foo.mk (λ (a : unit) (b : delayed[?m_1]), delayed[?m_2])
term
λ (a : unit) (b : delayed[?m_1]), delayed[?m_2]
has type
Π (a : unit) (b : delayed[?m_1]), delayed[?m_3]
but is expected to have type
unit → unit