Allow function overloads involving MagicVariableDeclarations.

This commit is contained in:
chriseth
2018-04-12 13:09:37 +02:00
parent 17fc0f54b5
commit f00bb43593
4 changed files with 18 additions and 7 deletions
+5
View File
@@ -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: