aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-22 22:07:14 +0800
committerchriseth <chris@ethereum.org>2018-11-26 21:30:32 +0800
commit36a369d077490a45018cefe5b0686eb373140920 (patch)
tree941e9df2685c84bcdb4f863d481c4fa4fc57ce35
parent939365a1d5bec0f4c61f18bb5744189f39734198 (diff)
downloaddexon-solidity-36a369d077490a45018cefe5b0686eb373140920.tar.gz
dexon-solidity-36a369d077490a45018cefe5b0686eb373140920.tar.zst
dexon-solidity-36a369d077490a45018cefe5b0686eb373140920.zip
Use asCallableFunction for external interface clash check.
-rw-r--r--libsolidity/analysis/TypeChecker.cpp4
1 files changed, 2 insertions, 2 deletions
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))
);
}
}