aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/AST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/AST.cpp')
-rw-r--r--libsolidity/AST.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/libsolidity/AST.cpp b/libsolidity/AST.cpp
index ad413352..a9382031 100644
--- a/libsolidity/AST.cpp
+++ b/libsolidity/AST.cpp
@@ -817,10 +817,16 @@ void BinaryOperation::checkTypeRequirements(TypePointers const*)
m_right->checkTypeRequirements(nullptr);
m_commonType = m_left->type()->binaryOperatorResult(m_operator, m_right->type());
if (!m_commonType)
- BOOST_THROW_EXCEPTION(createTypeError("Operator " + string(Token::toString(m_operator)) +
- " not compatible with types " +
- m_left->type()->toString() + " and " +
- m_right->type()->toString()));
+ BOOST_THROW_EXCEPTION(
+ createTypeError(
+ "Operator " +
+ string(Token::toString(m_operator)) +
+ " not compatible with types " +
+ m_left->type()->toString() +
+ " and " +
+ m_right->type()->toString()
+ )
+ );
m_type = Token::isCompareOp(m_operator) ? make_shared<BoolType>() : m_commonType;
}