aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-06-27 18:04:49 +0800
committerGitHub <noreply@github.com>2018-06-27 18:04:49 +0800
commitb67dfa154cacbe173d2a54a85d73f8b9a03cc15f (patch)
tree53d6ea6851e2a2d14d23f20ddbaa993cd9312065 /libsolidity/analysis
parent503eb8caa53c1f6ef00cec1fee099b2457c304f4 (diff)
parent4e8883b63d26eb2bcfc5e1c18c8bab8236fff16b (diff)
downloaddexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar
dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.gz
dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.bz2
dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.lz
dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.xz
dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.zst
dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.zip
Merge pull request #4269 from ethereum/require-emit
[BREAKING] Remove non-0.5.0 warning for emit keyword (make it mandatory)
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp7
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();