Fix bug preventing overloads of different array types.

This commit is contained in:
chriseth
2015-12-18 13:56:37 +01:00
parent 938ed70935
commit 79c5d032fe
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -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();
}