lean4-htt/tests/lean/binrelTypeMismatch.lean.expected.out
Kyle Miller acb1b09fbf
fix: expression tree elaborator for relations now localizes error messages to the LHS or RHS (#3442)
Added `withRef` when processing the LHS or RHS. Without this, in an
expression such as `true = ()` the entire expression would be
highlighted with "type mismatch, `()` has type `Unit` but is expected to
have type `Bool`". Now the error is localized to `()`.

This behavior was pointed out [on
Zulip](https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/error.20location.20bug/near/422665805).
2024-03-04 00:53:32 +00:00

20 lines
491 B
Text

binrelTypeMismatch.lean:10:14-10:16: error: type mismatch
()
has type
Unit : Type
but is expected to have type
Bool : Type
binrelTypeMismatch.lean:15:21-15:22: error: type mismatch
p
has type
Prop : Type
but is expected to have type
Bool : Type
Prop → sorryAx (Sort u_1) true : Sort (imax 1 u_1)
binrelTypeMismatch.lean:20:27-20:28: error: type mismatch
p
has type
Prop : Type
but is expected to have type
Bool : Type
Prop → sorryAx (Sort u_1) true : Sort (imax 1 u_1)