aboutsummaryrefslogtreecommitdiff
path: root/Sil/Compile.icl
diff options
context:
space:
mode:
authorCamil Staps2017-07-20 20:40:38 +0000
committerCamil Staps2017-07-20 20:40:38 +0000
commit62c9c126ed3eedf981cc087938fd98f7afb17506 (patch)
treebdab83683ff75ab915d3d8af612235c55812d772 /Sil/Compile.icl
parentCleanup (diff)
Check the type of the main function (should be Void)
Diffstat (limited to 'Sil/Compile.icl')
-rw-r--r--Sil/Compile.icl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sil/Compile.icl b/Sil/Compile.icl
index af82f3e..50cc86b 100644
--- a/Sil/Compile.icl
+++ b/Sil/Compile.icl
@@ -181,7 +181,7 @@ where
typeresolver :: Name -> Maybe (MaybeError TypeError Type)
typeresolver n = case [f \\ f <- p.p_funs | f.f_name == n] of
[] -> Nothing
- [f:_] -> type (const Nothing) f
+ [f:_] -> type zero f
instance gen Function
where