diff options
author | chriseth <c@ethdev.com> | 2015-11-27 21:08:09 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-12-01 19:35:34 +0800 |
commit | 7f415da886db51a5243749a7968917087fb4ca35 (patch) | |
tree | bd87da97c529b0ca7c7103f6ccff9909c348766a /libsolidity/ast | |
parent | e853eb22fa0ec391812144675d4f000638db11b7 (diff) | |
download | dexon-solidity-7f415da886db51a5243749a7968917087fb4ca35.tar dexon-solidity-7f415da886db51a5243749a7968917087fb4ca35.tar.gz dexon-solidity-7f415da886db51a5243749a7968917087fb4ca35.tar.bz2 dexon-solidity-7f415da886db51a5243749a7968917087fb4ca35.tar.lz dexon-solidity-7f415da886db51a5243749a7968917087fb4ca35.tar.xz dexon-solidity-7f415da886db51a5243749a7968917087fb4ca35.tar.zst dexon-solidity-7f415da886db51a5243749a7968917087fb4ca35.zip |
Code generation for calling bound methods.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 0409ac63..2dc7fb84 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -1514,6 +1514,10 @@ bool FunctionType::operator==(Type const& _other) const //@todo this is ugly, but cannot be prevented right now if (m_gasSet != other.m_gasSet || m_valueSet != other.m_valueSet) return false; + if (bound() != other.bound()) + return false; + if (bound() && *selfType() != *other.selfType()) + return false; return true; } |