Skip to content

Commit b586ad1

Browse files
committed
small fix
1 parent 467c610 commit b586ad1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Lean/Meta/ExprDefEq.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,7 +2142,8 @@ private partial def isUnitLikeType (e : Expr) : MetaM Bool :=
21422142
private def isDefEqUnitLike (t : Expr) (s : Expr) : MetaM Bool := do
21432143
let tType ← inferType t
21442144
match (← cachedUnitLike? tType) with
2145-
| some b => return b
2145+
| some false => return false
2146+
| some true => Meta.isExprDefEqAux tType (← inferType s)
21462147
| none => cacheUnitLike tType (← do
21472148
let isUnit ← isUnitLikeType tType
21482149
if !isUnit then return false

0 commit comments

Comments
 (0)