diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-12 01:10:24 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-06-27 02:00:54 +0800 |
commit | 80b7d361873f239fef30d10a10c73e724eecff3e (patch) | |
tree | f4094da695b54614c9288173dffec7f97eba31c1 /libsolidity | |
parent | 503eb8caa53c1f6ef00cec1fee099b2457c304f4 (diff) | |
download | dexon-solidity-80b7d361873f239fef30d10a10c73e724eecff3e.tar.gz dexon-solidity-80b7d361873f239fef30d10a10c73e724eecff3e.tar.zst dexon-solidity-80b7d361873f239fef30d10a10c73e724eecff3e.zip |
Remove non-0.5.0 warning for emit keyword (make it mandatory)
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index b46d4849..e833b8fe 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -1712,12 +1712,7 @@ bool TypeChecker::visit(FunctionCall const& _functionCall) m_errorReporter.typeError(_functionCall.location(), "\"suicide\" has been deprecated in favour of \"selfdestruct\""); } if (!m_insideEmitStatement && functionType->kind() == FunctionType::Kind::Event) - { - if (m_scope->sourceUnit().annotation().experimentalFeatures.count(ExperimentalFeature::V050)) - m_errorReporter.typeError(_functionCall.location(), "Event invocations have to be prefixed by \"emit\"."); - else - m_errorReporter.warning(_functionCall.location(), "Invoking events without \"emit\" prefix is deprecated."); - } + m_errorReporter.typeError(_functionCall.location(), "Event invocations have to be prefixed by \"emit\"."); TypePointers parameterTypes = functionType->parameterTypes(); |