diff options
author | chriseth <chris@ethereum.org> | 2018-11-22 22:07:14 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-26 21:30:32 +0800 |
commit | 36a369d077490a45018cefe5b0686eb373140920 (patch) | |
tree | 941e9df2685c84bcdb4f863d481c4fa4fc57ce35 | |
parent | 939365a1d5bec0f4c61f18bb5744189f39734198 (diff) | |
download | dexon-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.cpp | 4 |
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)) ); } } |