aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-05-04 21:02:04 +0800
committerGitHub <noreply@github.com>2018-05-04 21:02:04 +0800
commit150d226603cabd2c50b8324bd58bf06712311af9 (patch)
tree3190c59d7bc8bd9581e0289af62db8c7875cae19 /test/libsolidity
parent81d61ca086e8e45108b7989e7f1494d90077401e (diff)
parentffe7f224a6c9598284f100f842e3cfba58974d56 (diff)
downloaddexon-solidity-150d226603cabd2c50b8324bd58bf06712311af9.tar.gz
dexon-solidity-150d226603cabd2c50b8324bd58bf06712311af9.tar.zst
dexon-solidity-150d226603cabd2c50b8324bd58bf06712311af9.zip
Merge pull request #4063 from ethereum/emit-non-event
Show proper error when trying to emit a non-event
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/syntaxTests/emit_non_event.sol10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/emit_non_event.sol b/test/libsolidity/syntaxTests/emit_non_event.sol
new file mode 100644
index 00000000..1df6990d
--- /dev/null
+++ b/test/libsolidity/syntaxTests/emit_non_event.sol
@@ -0,0 +1,10 @@
+contract C {
+ uint256 Test;
+
+ function f() {
+ emit Test();
+ }
+}
+// ----
+// TypeError: (56-62): Type is not callable
+// TypeError: (56-60): Expression has to be an event invocation.