mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix bug preventing overloads of different array types.
This commit is contained in:
@@ -831,6 +831,8 @@ bool ArrayType::operator==(Type const& _other) const
|
||||
other.isDynamicallySized() != isDynamicallySized()
|
||||
)
|
||||
return false;
|
||||
if (*other.baseType() != *baseType())
|
||||
return false;
|
||||
return isDynamicallySized() || length() == other.length();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user