aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-22 21:50:50 +0800
committerchriseth <chris@ethereum.org>2018-11-22 22:48:12 +0800
commit62e801ed706b967f7bb878823ee4fff69dde9922 (patch)
tree58747f88d4c3586c30eff8ef82f6dfe9067390b9 /libsolidity
parent92ba8a95f6f1348c2bc71eea4b550a7f33b13ec7 (diff)
downloaddexon-solidity-62e801ed706b967f7bb878823ee4fff69dde9922.tar.gz
dexon-solidity-62e801ed706b967f7bb878823ee4fff69dde9922.tar.zst
dexon-solidity-62e801ed706b967f7bb878823ee4fff69dde9922.zip
Use callable function for virtual resolution.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/CompilerContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp
index 9e4f2882..eb33f688 100644
--- a/libsolidity/codegen/CompilerContext.cpp
+++ b/libsolidity/codegen/CompilerContext.cpp
@@ -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.");