store the updated/checked type for all abstract functions

This commit is contained in:
Krasimir Angelov
2026-02-13 13:21:07 +01:00
parent 3f35d779f1
commit ba29bca730
+2 -2
View File
@@ -161,8 +161,8 @@ checkInfo opts cwd sgr sm (c,info) = checkInModule cwd (snd sm) NoLoc empty $ do
update sm c (AbsCat (Just (L loc cont)))
AbsFun (Just (L loc typ)) md -> do
chIn loc "the type of function" $
checkLType ga typ typeType
(typ,_) <- chIn loc "the type of function" $
checkLType ga typ typeType
typ <- normalForm ga typ -- to calculate let definitions
md <- case md of
Just (_,eqs) -> do eqs <- mapM (\(L loc eq) -> chIn loc "the definition of function" $