aboutsummaryrefslogtreecommitdiff
path: root/src/Compiler.hs
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-14 17:49:02 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-14 17:49:02 +0100
commitfa4d7737f2a738fd82e62b84c8849bf67d12ceec (patch)
tree577657081be6eaa5eb9dc9fd3c82295de0a8b3ec /src/Compiler.hs
parent28dff65744f89de563ae41ba717d60fc7e300f29 (diff)
downloadmicro-lang-hs-fa4d7737f2a738fd82e62b84c8849bf67d12ceec.tar.gz
micro-lang-hs-fa4d7737f2a738fd82e62b84c8849bf67d12ceec.zip
Case removed by mistake
Diffstat (limited to 'src/Compiler.hs')
-rw-r--r--src/Compiler.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compiler.hs b/src/Compiler.hs
index f86c973..65f635b 100644
--- a/src/Compiler.hs
+++ b/src/Compiler.hs
@@ -114,6 +114,7 @@ compile x = do
case r of
Just err -> addError $ Error err pos
Nothing -> return $ Right rtyp
+ Right _ -> addError $ Error ("non callable value in function call") pos
_ -> return $ Right Nothing
(A.Return value pos) -> do
(ev, errs) <- get