restored lock fields with a clearer warning

This commit is contained in:
aarne
2006-06-18 19:23:00 +00:00
parent 7dec4c8a89
commit e4a9b92b85
2 changed files with 11 additions and 7 deletions

View File

@@ -771,12 +771,12 @@ checkEqLType env t u trm = do
case t' == u' || alpha [] t' u' of
True -> return t'
-- forgive missing lock fields by only generating a warning.
--- better: use a flag to forgive (AR 31/1/2006)
--- better: use a flag to forgive? (AR 31/1/2006)
_ -> case missingLock [] t' u' of
Ok lo -> do
checkWarn $ "missing lock field" +++ unwords (map prt lo)
checkWarn $ "WARNING: missing lock field" +++ unwords (map prt lo)
return t'
Bad s -> raise (s ++ "type of" +++ prt trm +++
Bad s -> raise (s +++ "type of" +++ prt trm +++
": expected" ++++ prt t' ++++ "inferred" ++++ prt u')
where