diff options
author | chriseth <chris@ethereum.org> | 2018-11-22 21:50:50 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-22 22:48:12 +0800 |
commit | 62e801ed706b967f7bb878823ee4fff69dde9922 (patch) | |
tree | 58747f88d4c3586c30eff8ef82f6dfe9067390b9 | |
parent | 92ba8a95f6f1348c2bc71eea4b550a7f33b13ec7 (diff) | |
download | dexon-solidity-62e801ed706b967f7bb878823ee4fff69dde9922.tar.gz dexon-solidity-62e801ed706b967f7bb878823ee4fff69dde9922.tar.zst dexon-solidity-62e801ed706b967f7bb878823ee4fff69dde9922.zip |
Use callable function for virtual resolution.
-rw-r--r-- | libsolidity/codegen/CompilerContext.cpp | 2 |
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."); |