mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use user defined function return type as user defined operator type
This commit is contained in:
@@ -1835,7 +1835,7 @@ void TypeChecker::endVisit(BinaryOperation const& _operation)
|
||||
*userDefinedFunctionType->parameterTypes().at(0) ==
|
||||
*userDefinedFunctionType->parameterTypes().at(1)
|
||||
);
|
||||
commonType = userDefinedFunctionType->parameterTypes().at(0);
|
||||
commonType = userDefinedFunctionType->returnParameterTypes().at(0);
|
||||
}
|
||||
|
||||
_operation.annotation().commonType = commonType;
|
||||
|
||||
Reference in New Issue
Block a user