mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Introduces Result<T> for operator and implicit conversion type checks.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user