mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 13:00:08 +00:00
Added cardinality to type checking
This commit is contained in:
@@ -94,7 +94,7 @@ checkExpression symbolMap (IfSimple cond ex)
|
||||
-- |The unbounded or semi-bounded cardinalities already have 0 included
|
||||
Right x -> Right x
|
||||
Left err -> Left err
|
||||
| otherwise = Left $ IfConditionNotBoolean $ show condType ++ " | " ++ show (getVars symbolMap)
|
||||
| otherwise = Left $ IfConditionNotBoolean $ show condType
|
||||
where
|
||||
condType = checkExpression symbolMap cond
|
||||
checkedExp = checkExpression symbolMap ex
|
||||
|
||||
Reference in New Issue
Block a user