aboutsummaryrefslogtreecommitdiff
path: root/Sil
diff options
context:
space:
mode:
authorCamil Staps2017-07-19 21:40:48 +0000
committerCamil Staps2017-07-19 21:40:48 +0000
commitf0c1c589fffc8000630a62335bd55df66190df54 (patch)
treeae7860fde09882ee77d3255851e32ea15cab6671 /Sil
parentAdd NoReturnFromNonVoidError (diff)
Fix testing code
Diffstat (limited to 'Sil')
-rw-r--r--Sil/Check.icl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sil/Check.icl b/Sil/Check.icl
index 0784291..c4ab5f0 100644
--- a/Sil/Check.icl
+++ b/Sil/Check.icl
@@ -24,7 +24,7 @@ where
instance <<< CheckError where <<< f e = f <<< toString e <<< "\r\n"
checkProgram :: *(Maybe *File) Program -> *([CheckError], *Maybe *File)
-checkProgram err prog = checkFunction err (hd prog.p_funs) //appFst flatten $ mapSt (flip checkFunction) prog.p_funs err
+checkProgram err prog = appFst flatten $ mapSt (flip checkFunction) prog.p_funs err
checkFunction :: *(Maybe *File) Function -> *([CheckError], *Maybe *File)
checkFunction err f = checkErrors [checkReturnAndVoid] f err