mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix hidden-overload in Types and remove CMake hack
This commit is contained in:
@@ -1694,7 +1694,7 @@ bool ArrayType::operator==(Type const& _other) const
|
||||
return false;
|
||||
ArrayType const& other = dynamic_cast<ArrayType const&>(_other);
|
||||
if (
|
||||
!ReferenceType::operator==(other) ||
|
||||
!equals(other) ||
|
||||
other.isByteArray() != isByteArray() ||
|
||||
other.isString() != isString() ||
|
||||
other.isDynamicallySized() != isDynamicallySized()
|
||||
@@ -2204,7 +2204,7 @@ bool StructType::operator==(Type const& _other) const
|
||||
if (_other.category() != category())
|
||||
return false;
|
||||
StructType const& other = dynamic_cast<StructType const&>(_other);
|
||||
return ReferenceType::operator==(other) && other.m_struct == m_struct;
|
||||
return equals(other) && other.m_struct == m_struct;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -803,7 +803,7 @@ public:
|
||||
/// if the type has an interfaceType.
|
||||
virtual BoolResult validForLocation(DataLocation _loc) const = 0;
|
||||
|
||||
bool operator==(ReferenceType const& _other) const
|
||||
bool equals(ReferenceType const& _other) const
|
||||
{
|
||||
return location() == _other.location() && isPointer() == _other.isPointer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user