fix: whnf

This commit is contained in:
Leonardo de Moura
2026-03-03 09:13:44 -08:00
parent 1f04bf4fd1
commit b3b669cdd1

View File

@@ -348,7 +348,7 @@ mutual
unless projInfo.fromClass do return none
-- First check whether `e`s instance is stuck.
if let some major := args[projInfo.numParams]? then
if let some mvarId getStuckMVar? major then
if let some mvarId getStuckMVar? ( whnf major) then
return mvarId
/-
Then, recurse on the explicit arguments
@@ -366,7 +366,7 @@ mutual
else if let some auxInfo getAuxParentProjectionInfo? fName then
unless auxInfo.fromClass do return none
if let some major := args[auxInfo.numParams]? then
if let some mvarId getStuckMVar? major then
if let some mvarId getStuckMVar? ( whnf major) then
return mvarId
return none
else