From 79c5d032fee1d9e96db9540dbafd312626d7711a Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 18 Dec 2015 13:56:37 +0100 Subject: Fix bug preventing overloads of different array types. --- libsolidity/ast/Types.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libsolidity/ast') 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(); } -- cgit