From a398ec460b923d0ade71565e09b8c89b022746a6 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 20 Aug 2022 22:07:09 +0100 Subject: Qualified as non callable error --- src/Compiler.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Compiler.hs b/src/Compiler.hs index 06df1ae..0228b90 100644 --- a/src/Compiler.hs +++ b/src/Compiler.hs @@ -116,7 +116,7 @@ compile x = do case r of Just err -> addError $ Error TypeError err pos Nothing -> return $ Right rtyp - Right _ -> addError $ Error GenericError "non callable value in function call" pos + Right _ -> addError $ Error NonCallable "non callable value in function call" pos _ -> return $ Right Nothing (A.Return value pos) -> do (ev, errs) <- get -- cgit v1.2.3