aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-05-04 12:21:28 +0800
committerchriseth <chris@ethereum.org>2018-05-04 18:47:01 +0800
commitffe7f224a6c9598284f100f842e3cfba58974d56 (patch)
tree443d70a5ad7dd48afd9d52bc3917869ed0352ed7 /test/libsolidity
parent5738f93704a2d5de863d5f160adf8a27bf965361 (diff)
downloaddexon-solidity-ffe7f224a6c9598284f100f842e3cfba58974d56.tar.gz
dexon-solidity-ffe7f224a6c9598284f100f842e3cfba58974d56.tar.zst
dexon-solidity-ffe7f224a6c9598284f100f842e3cfba58974d56.zip
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.