aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/AST.cpp b/AST.cpp
index 5e344ead..c286c412 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -130,6 +130,13 @@ void WhileStatement::checkTypeRequirements()
m_body->checkTypeRequirements();
}
+void ForStatement::checkTypeRequirements()
+{
+ // LTODO
+ m_condExpression->expectType(BoolType());
+ m_body->checkTypeRequirements();
+}
+
void Return::checkTypeRequirements()
{
if (!m_expression)