Use asCallableFunction for external interface clash check.

This commit is contained in:
chriseth 2018-11-22 15:07:14 +01:00
parent 939365a1d5
commit 36a369d077

View File

@ -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))
);
}
}