diff options
author | chriseth <c@ethdev.com> | 2015-12-18 20:56:37 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-12-18 20:56:37 +0800 |
commit | 79c5d032fee1d9e96db9540dbafd312626d7711a (patch) | |
tree | e39ad6c364a7b1fe68c2b5587f5a5eb3c24c8b78 /libsolidity/ast | |
parent | 938ed70935a434babb8c52e6a2985b98216b37c6 (diff) | |
download | dexon-solidity-79c5d032fee1d9e96db9540dbafd312626d7711a.tar.gz dexon-solidity-79c5d032fee1d9e96db9540dbafd312626d7711a.tar.zst dexon-solidity-79c5d032fee1d9e96db9540dbafd312626d7711a.zip |
Fix bug preventing overloads of different array types.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 49347022..e5a120ee 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -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(); } |