Use callable function for virtual resolution.

This commit is contained in:
chriseth 2018-11-22 14:50:50 +01:00
parent 92ba8a95f6
commit 62e801ed70

View File

@ -415,7 +415,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.");