@@ -260,7 +260,7 @@ occurs state (name, A.At region variable) =
260 do errorType <- Type.toErrorType variable
260 do errorType <- Type.toErrorType variable
261 (Descriptor _ rank mark copy) <- UF.get variable
261 (Descriptor _ rank mark copy) <- UF.get variable
262 UF.set variable (Descriptor Error rank mark copy)
262 UF.set variable (Descriptor Error rank mark copy)
263− return $ state { _errors = Error.InfiniteType region name errorType : _errors state }
263+ return $ addError state (Error.InfiniteType region name errorType)
265 return state
265 return state