mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Renamed FunctionType::hasEqualArgumentTypes to FunctionType::hasEqualParameterTypes
This commit is contained in:
@@ -1871,7 +1871,7 @@ MemberList::MemberMap ContractType::nativeMembers(ContractDefinition const* _con
|
||||
continue;
|
||||
auto memberType = dynamic_cast<FunctionType const*>(member.type.get());
|
||||
solAssert(!!memberType, "Override changes type.");
|
||||
if (!memberType->hasEqualArgumentTypes(*functionType))
|
||||
if (!memberType->hasEqualParameterTypes(*functionType))
|
||||
continue;
|
||||
functionWithEqualArgumentsFound = true;
|
||||
break;
|
||||
@@ -2825,7 +2825,7 @@ bool FunctionType::canTakeArguments(TypePointers const& _argumentTypes, TypePoin
|
||||
);
|
||||
}
|
||||
|
||||
bool FunctionType::hasEqualArgumentTypes(FunctionType const& _other) const
|
||||
bool FunctionType::hasEqualParameterTypes(FunctionType const& _other) const
|
||||
{
|
||||
if (m_parameterTypes.size() != _other.m_parameterTypes.size())
|
||||
return false;
|
||||
|
||||
@@ -1035,7 +1035,7 @@ public:
|
||||
/// expression the function is called on.
|
||||
bool canTakeArguments(TypePointers const& _arguments, TypePointer const& _selfType = TypePointer()) const;
|
||||
/// @returns true if the types of parameters are equal (doesn't check return parameter types)
|
||||
bool hasEqualArgumentTypes(FunctionType const& _other) const;
|
||||
bool hasEqualParameterTypes(FunctionType const& _other) const;
|
||||
|
||||
/// @returns true if the ABI is used for this call (only meaningful for external calls)
|
||||
bool isBareCall() const;
|
||||
|
||||
Reference in New Issue
Block a user