aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/StaticAnalyzer.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-06-18 23:06:23 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-06-20 01:31:07 +0800
commita17059573fe2ffce115b5368e798a87ce07dc1cd (patch)
treef4ed43e75f6e1af91159811f570f26b4b6ead818 /libsolidity/analysis/StaticAnalyzer.cpp
parent4189b6b03dfcbcccacb17e4eeed4eaf6cd653002 (diff)
downloaddexon-solidity-a17059573fe2ffce115b5368e798a87ce07dc1cd.tar
dexon-solidity-a17059573fe2ffce115b5368e798a87ce07dc1cd.tar.gz
dexon-solidity-a17059573fe2ffce115b5368e798a87ce07dc1cd.tar.bz2
dexon-solidity-a17059573fe2ffce115b5368e798a87ce07dc1cd.tar.lz
dexon-solidity-a17059573fe2ffce115b5368e798a87ce07dc1cd.tar.xz
dexon-solidity-a17059573fe2ffce115b5368e798a87ce07dc1cd.tar.zst
dexon-solidity-a17059573fe2ffce115b5368e798a87ce07dc1cd.zip
Disallow raw callcode (was deprecated in 0.4.12)
Diffstat (limited to 'libsolidity/analysis/StaticAnalyzer.cpp')
-rw-r--r--libsolidity/analysis/StaticAnalyzer.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp
index 00a581d0..dad4cc7f 100644
--- a/libsolidity/analysis/StaticAnalyzer.cpp
+++ b/libsolidity/analysis/StaticAnalyzer.cpp
@@ -193,18 +193,10 @@ bool StaticAnalyzer::visit(MemberAccess const& _memberAccess)
if (_memberAccess.memberName() == "callcode")
if (auto const* type = dynamic_cast<FunctionType const*>(_memberAccess.annotation().type.get()))
if (type->kind() == FunctionType::Kind::BareCallCode)
- {
- if (v050)
- m_errorReporter.typeError(
- _memberAccess.location(),
- "\"callcode\" has been deprecated in favour of \"delegatecall\"."
- );
- else
- m_errorReporter.warning(
- _memberAccess.location(),
- "\"callcode\" has been deprecated in favour of \"delegatecall\"."
- );
- }
+ m_errorReporter.typeError(
+ _memberAccess.location(),
+ "\"callcode\" has been deprecated in favour of \"delegatecall\"."
+ );
if (m_constructor)
{