diff options
author | chriseth <c@ethdev.com> | 2015-11-17 07:06:57 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-11-26 20:10:12 +0800 |
commit | 30b325fdc148d5014f04fd238362e3a1df10310f (patch) | |
tree | cd8df0c1f6e5462f2349a07d8f5f7d1fd156b4cc /libsolidity/ast/AST_accept.h | |
parent | cd94aa978a77ace1296f9978bfae6d8735b5c91d (diff) | |
download | dexon-solidity-30b325fdc148d5014f04fd238362e3a1df10310f.tar.gz dexon-solidity-30b325fdc148d5014f04fd238362e3a1df10310f.tar.zst dexon-solidity-30b325fdc148d5014f04fd238362e3a1df10310f.zip |
Allow "new expressions" also for general type names.
Breaking change: If you want to send value with a contract creation, you
have to use parentheses now:
`(new ContractName).value(2 ether)(arg1, arg2)`
Diffstat (limited to 'libsolidity/ast/AST_accept.h')
-rw-r--r-- | libsolidity/ast/AST_accept.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/AST_accept.h b/libsolidity/ast/AST_accept.h index 12a26ea7..99d1bf6a 100644 --- a/libsolidity/ast/AST_accept.h +++ b/libsolidity/ast/AST_accept.h @@ -634,14 +634,14 @@ void FunctionCall::accept(ASTConstVisitor& _visitor) const void NewExpression::accept(ASTVisitor& _visitor) { if (_visitor.visit(*this)) - m_contractName->accept(_visitor); + m_typeName->accept(_visitor); _visitor.endVisit(*this); } void NewExpression::accept(ASTConstVisitor& _visitor) const { if (_visitor.visit(*this)) - m_contractName->accept(_visitor); + m_typeName->accept(_visitor); _visitor.endVisit(*this); } |