diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-08-20 22:07:09 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-08-20 22:07:09 +0100 |
commit | a398ec460b923d0ade71565e09b8c89b022746a6 (patch) | |
tree | 076623a30f99148b158a07bd9288b0fbff625942 /src/Compiler.hs | |
parent | e7f490bcaad1513e10b77973bb52e686b44499a8 (diff) | |
download | micro-lang-hs-a398ec460b923d0ade71565e09b8c89b022746a6.tar.gz micro-lang-hs-a398ec460b923d0ade71565e09b8c89b022746a6.zip |
Qualified as non callable error
Diffstat (limited to 'src/Compiler.hs')
-rw-r--r-- | src/Compiler.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |