diff options
author | chriseth <chris@ethereum.org> | 2017-12-30 20:46:53 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-12 19:09:37 +0800 |
commit | f00bb4359375cd03e9ff6373b5efa41a37ce2876 (patch) | |
tree | d56546ceb10e7c8447fcad63b53fa77e77d61bd2 /libsolidity/ast/AST.h | |
parent | 17fc0f54b5dbf6b49e0500e3fca7b681316071f6 (diff) | |
download | dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.gz dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.bz2 dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.lz dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.xz dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.zst dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.zip |
Allow function overloads involving MagicVariableDeclarations.
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r-- | libsolidity/ast/AST.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index b648e08b..a53987bf 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -831,6 +831,11 @@ public: solAssert(false, "MagicVariableDeclaration used inside real AST."); } + virtual FunctionTypePointer functionType(bool) const override + { + solAssert(m_type->category() == Type::Category::Function, ""); + return std::dynamic_pointer_cast<FunctionType const>(m_type); + } virtual TypePointer type() const override { return m_type; } private: |