Skip to content

Commit 6cc3b36

Browse files
committed
fix: check types
1 parent 16fd4c3 commit 6cc3b36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Lean/Meta/Tactic/Grind/MatchCond.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ where
286286
| reportIssue! "found term that has not been internalized{indentExpr lhs}\nwhile trying to construct a proof for `MatchCond`{indentExpr e}"
287287
return none
288288
let isHEq := α?.isSome
289+
unless (← hasSameType root.self rhs) do
290+
return none
289291
let h ← if isHEq then
290292
mkEqOfHEq (← mkHEqTrans (← mkHEqProof root.self lhs) h) (check := false)
291293
else

0 commit comments

Comments
 (0)