diff options
author | Christian <c@ethdev.com> | 2014-10-15 21:54:41 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-16 00:41:44 +0800 |
commit | d557fbac9c39e6e2b40ff4c4a3093be2f08df602 (patch) | |
tree | 3c5acd40804f62172bfc7f7ad6a30c30ed3d14e3 /AST.cpp | |
parent | df142782bc3a1435f70d9f5f4c8e04ae8d7e1678 (diff) | |
download | dexon-solidity-d557fbac9c39e6e2b40ff4c4a3093be2f08df602.tar.gz dexon-solidity-d557fbac9c39e6e2b40ff4c4a3093be2f08df602.tar.zst dexon-solidity-d557fbac9c39e6e2b40ff4c4a3093be2f08df602.zip |
Some fixes for the type system, should be quite usable now.
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -354,7 +354,7 @@ ptr<Type> BinaryOperation::checkTypeRequirements() } else { BOOST_ASSERT(Token::IsBinaryOp(m_operator)); m_type = m_commonType; - if (!m_commonType->acceptsBinaryOperator(Token::AssignmentToBinaryOp(m_operator))) + if (!m_commonType->acceptsBinaryOperator(m_operator)) BOOST_THROW_EXCEPTION(TypeError() << errinfo_comment("Operator not compatible with type.")); } return m_type; |