diff options
author | Anurag Dashputre <anurag4u80@gmail.com> | 2018-08-17 21:07:35 +0800 |
---|---|---|
committer | Anurag Dashputre <anurag4u80@gmail.com> | 2018-08-17 21:07:35 +0800 |
commit | 435cd95c54c796ba5adcf9cd4017b09c823e9f55 (patch) | |
tree | 237f046644b2133adb474958df979459243739dd /libsolidity/ast | |
parent | 43db88b8363d73ee2f5ffa094ff506414261bd11 (diff) | |
download | dexon-solidity-435cd95c54c796ba5adcf9cd4017b09c823e9f55.tar.gz dexon-solidity-435cd95c54c796ba5adcf9cd4017b09c823e9f55.tar.zst dexon-solidity-435cd95c54c796ba5adcf9cd4017b09c823e9f55.zip |
Default case removed to detect errors at comoile time rather than run time
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 2dcfda42..04363aa4 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -2537,7 +2537,6 @@ string FunctionType::richIdentifier() const case Kind::ABIEncodePacked: id += "abiencodepacked"; break; case Kind::ABIEncodeWithSelector: id += "abiencodewithselector"; break; case Kind::ABIEncodeWithSignature: id += "abiencodewithsignature"; break; - default: solAssert(false, "Unknown function location."); break; } id += "_" + stateMutabilityToString(m_stateMutability); id += identifierList(m_parameterTypes) + "returns" + identifierList(m_returnParameterTypes); |