mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
ForStatement typecheck and initExpression is a Statement
This commit is contained in:
@@ -132,8 +132,12 @@ void WhileStatement::checkTypeRequirements()
|
||||
|
||||
void ForStatement::checkTypeRequirements()
|
||||
{
|
||||
// LTODO
|
||||
m_condExpression->expectType(BoolType());
|
||||
if (m_initExpression)
|
||||
m_initExpression->checkTypeRequirements();
|
||||
if (m_condExpression)
|
||||
m_condExpression->expectType(BoolType());
|
||||
if (m_loopExpression)
|
||||
m_loopExpression->checkTypeRequirements();
|
||||
m_body->checkTypeRequirements();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user