Some fixes for the type system, should be quite usable now.

This commit is contained in:
Christian
2014-10-15 18:41:44 +02:00
parent df142782bc
commit d557fbac9c
4 changed files with 198 additions and 162 deletions
+1 -1
View File
@@ -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;