Merge pull request #5485 from ethereum/refactorCallableFunction

Refactor callable function
This commit is contained in:
chriseth
2018-11-26 12:34:43 +01:00
committed by GitHub
4 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -414,7 +414,7 @@ FunctionDefinition const& CompilerContext::resolveVirtualFunction(
if (
function->name() == name &&
!function->isConstructor() &&
FunctionType(*function).hasEqualParameterTypes(functionType)
FunctionType(*function).asCallableFunction(false)->hasEqualParameterTypes(functionType)
)
return *function;
solAssert(false, "Super function " + name + " not found.");