@@ -449,7 +449,9 @@ elab ist info pattern tcgen fn tm
449 do ty <- goal
449 do ty <- goal
450 -- Check for possible coercions to get to the goal
450 -- Check for possible coercions to get to the goal
451 -- and add them as 'alternatives'
451 -- and add them as 'alternatives'
453+ let ty' = normalise (tt_ctxt ist) env ty
452− let cs = getCoercionsTo ist ty
454+ let cs = getCoercionsTo ist ty'
453 let t' = case (t, cs) of
455 let t' = case (t, cs) of
454 (PCoerced tm, _) -> tm
456 (PCoerced tm, _) -> tm
455 (_, []) -> t
457 (_, []) -> t