From 9a4968ba1d1db573e57befe497cedc81eb2ef587 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 22 Nov 2018 14:55:06 +0100 Subject: [PATCH] Use asCallableFunction in override check (part 1). --- libsolidity/analysis/TypeChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index d503b9ec9..4d874197d 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(*function); + FunctionTypePointer funType = make_shared(*function)->asCallableFunction(false); auto it = find_if(overloads.begin(), overloads.end(), [&](FunTypeAndFlag const& _funAndFlag) { return funType->hasEqualParameterTypes(*_funAndFlag.first);