lean4-htt/tests/lean/typeMismatch.lean
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
197 B
Text

import Lean
new_frontend
-- Test type mismatch error messages for "liftable" methods
def test (x : Nat) : IO Nat :=
IO.println ""
open Lean
def test (x : Expr) : MetaM Unit :=
Meta.isDefEq x x