You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using calc mode, on accidentally using 1/2 : ℕ (which rounds to 0) instead of 1/2 : ℝ due to a forgotten type cast, I get a confusing type mismatch error message where the expected and current types are identical.
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
When using calc mode, on accidentally using 1/2 : ℕ (which rounds to 0) instead of 1/2 : ℝ due to a forgotten type cast, I get a confusing type mismatch error message where the expected and current types are identical.
Context
https://leanprover.zulipchat.com/#narrow/channel/113489-new-members/topic/Calc.20mode.20complaining.20about.20non-matching.20expressions
Steps to Reproduce
Expected behavior: [Clear and concise description of what you expect to happen]
An error message like
Actual behavior: [Clear and concise description of what actually happens]
Lean throws this error message
The text was updated successfully, but these errors were encountered: