aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/emit_non_event.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/emit_non_event.sol')
-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.