Introduces Result<T> for operator and implicit conversion type checks.

This commit is contained in:
Erik Kundt
2018-12-05 10:33:34 +01:00
parent 6efe2a5266
commit 05e74d096e
4 changed files with 188 additions and 102 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ void ConstantEvaluator::endVisit(BinaryOperation const& _operation)
auto right = type(_operation.rightExpression());
if (left && right)
{
auto commonType = left->binaryOperatorResult(_operation.getOperator(), right);
TypePointer commonType = left->binaryOperatorResult(_operation.getOperator(), right);
if (!commonType)
m_errorReporter.fatalTypeError(
_operation.location(),