aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-12-21 22:37:51 +0800
committerchriseth <c@ethdev.com>2015-12-21 22:37:51 +0800
commit2466fb68a026869f2c3c9a5ae55b77535b7c03d7 (patch)
tree8c4c34398220449afb12e023feeb3e3c76cc14bd /libsolidity/ast
parent6f78998aaf0bafe9fc68ffa4d0d37f2364d6f81e (diff)
parent79c5d032fee1d9e96db9540dbafd312626d7711a (diff)
downloaddexon-solidity-2466fb68a026869f2c3c9a5ae55b77535b7c03d7.tar.gz
dexon-solidity-2466fb68a026869f2c3c9a5ae55b77535b7c03d7.tar.zst
dexon-solidity-2466fb68a026869f2c3c9a5ae55b77535b7c03d7.zip
Merge pull request #308 from chriseth/fixoverloadbug
Fix bug preventing overloads of different array types.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/Types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index b8c004e2..2e9b56a1 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();
}