mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use callable function for virtual resolution.
This commit is contained in:
parent
92ba8a95f6
commit
62e801ed70
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user