diff options
author | chriseth <chris@ethereum.org> | 2018-11-22 21:55:06 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-26 21:30:32 +0800 |
commit | 9a4968ba1d1db573e57befe497cedc81eb2ef587 (patch) | |
tree | 1fc07fc159c5aa569f13b4d6a9ec06efdccd1823 /libsolidity | |
parent | 7921e5f0b9ff954fd08be6a4f5014f844c0cf10d (diff) | |
download | dexon-solidity-9a4968ba1d1db573e57befe497cedc81eb2ef587.tar.gz dexon-solidity-9a4968ba1d1db573e57befe497cedc81eb2ef587.tar.zst dexon-solidity-9a4968ba1d1db573e57befe497cedc81eb2ef587.zip |
Use asCallableFunction in override check (part 1).
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index d503b9ec..4d874197 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -250,7 +250,7 @@ void TypeChecker::checkContractAbstractFunctions(ContractDefinition const& _cont if (function->isConstructor()) continue; auto& overloads = functions[function->name()]; - FunctionTypePointer funType = make_shared<FunctionType>(*function); + FunctionTypePointer funType = make_shared<FunctionType>(*function)->asCallableFunction(false); auto it = find_if(overloads.begin(), overloads.end(), [&](FunTypeAndFlag const& _funAndFlag) { return funType->hasEqualParameterTypes(*_funAndFlag.first); |