diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-16 20:20:50 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-17 07:03:30 +0800 |
commit | 062b51e7bdf572abba25a76fc8c3bb6e96da71c9 (patch) | |
tree | 8ea9026902a73500d680dbf8e5dff4e1dba44c05 /AST.h | |
parent | 90e39c04d6e476491503573719c487744f529514 (diff) | |
download | dexon-solidity-062b51e7bdf572abba25a76fc8c3bb6e96da71c9.tar.gz dexon-solidity-062b51e7bdf572abba25a76fc8c3bb6e96da71c9.tar.zst dexon-solidity-062b51e7bdf572abba25a76fc8c3bb6e96da71c9.zip |
ForStatement typecheck and initExpression is a Statement
Diffstat (limited to 'AST.h')
-rw-r--r-- | AST.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -513,7 +513,7 @@ class ForStatement: public BreakableStatement { public: ForStatement(Location const& _location, - ASTPointer<ASTNode> const& _initExpression, + ASTPointer<Statement> const& _initExpression, ASTPointer<Expression> const& _conditionExpression, ASTPointer<ExpressionStatement> const& _loopExpression, ASTPointer<Statement> const& _body): @@ -527,7 +527,7 @@ public: virtual void checkTypeRequirements() override; private: - ASTPointer<ASTNode> m_initExpression; + ASTPointer<Statement> m_initExpression; ASTPointer<Expression> m_condExpression; ASTPointer<ExpressionStatement> m_loopExpression; ASTPointer<Statement> m_body; |