This PR ensures that error messages such as “redundant alternative” have the right error location even if the arms share their RHS. Fixes #10781.
4 lines
174 B
Text
4 lines
174 B
Text
1057.lean:9:4-9:15: error: Dependent elimination failed: Type mismatch when solving this alternative: it has type
|
|
motive t Int
|
|
but is expected to have type
|
|
motive t x✝
|