lean4-htt/tests/lean/typeMismatch.lean.expected.out
Leonardo de Moura 49c5c5c08a fix: horrible error message due to constApprox := true
The new test `typeMismatch.lean` contains two examples where the error
message was dreadful.
2020-09-29 07:54:48 -07:00

12 lines
305 B
Text

typeMismatch.lean:7:0: error: type mismatch
IO.println ""
has type
EIO IO.Error Unit
but it is expected to have type
IO Nat
typeMismatch.lean:12:0: error: type mismatch
Meta.isDefEq x x
has type
ReaderT Meta.Context (StateRefT Meta.State CoreM) Bool
but it is expected to have type
MetaM Unit