From 36a369d077490a45018cefe5b0686eb373140920 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 22 Nov 2018 15:07:14 +0100 Subject: Use asCallableFunction for external interface clash check. --- libsolidity/analysis/TypeChecker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsolidity/analysis') diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index f8ea357c..9f3ba95f 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -456,7 +456,7 @@ void TypeChecker::checkContractExternalTypeClashes(ContractDefinition const& _co // under non error circumstances this should be true if (functionType->interfaceFunctionType()) externalDeclarations[functionType->externalSignature()].push_back( - make_pair(f, functionType) + make_pair(f, functionType->asCallableFunction(false)) ); } for (VariableDeclaration const* v: contract->stateVariables()) @@ -466,7 +466,7 @@ void TypeChecker::checkContractExternalTypeClashes(ContractDefinition const& _co // under non error circumstances this should be true if (functionType->interfaceFunctionType()) externalDeclarations[functionType->externalSignature()].push_back( - make_pair(v, functionType) + make_pair(v, functionType->asCallableFunction(false)) ); } } -- cgit