aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/emit/emit_empty.sol
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-08-02 01:01:50 +0800
committerchriseth <chris@ethereum.org>2018-09-06 23:11:53 +0800
commitc577e043a4d54ac740aab770a6af38d74a7a427d (patch)
tree8f404988ab85b5a9c451d82f153e38609c38a343 /test/libsolidity/syntaxTests/emit/emit_empty.sol
parent507cdf6de20b5c9bc9a0a8de311e9018af552865 (diff)
downloaddexon-solidity-c577e043a4d54ac740aab770a6af38d74a7a427d.tar.gz
dexon-solidity-c577e043a4d54ac740aab770a6af38d74a7a427d.tar.zst
dexon-solidity-c577e043a4d54ac740aab770a6af38d74a7a427d.zip
Disallow structs in events without ABIEncoderV2
Diffstat (limited to 'test/libsolidity/syntaxTests/emit/emit_empty.sol')
-rw-r--r--test/libsolidity/syntaxTests/emit/emit_empty.sol7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/emit/emit_empty.sol b/test/libsolidity/syntaxTests/emit/emit_empty.sol
new file mode 100644
index 00000000..819d88fe
--- /dev/null
+++ b/test/libsolidity/syntaxTests/emit/emit_empty.sol
@@ -0,0 +1,7 @@
+contract C {
+ function f() public {
+ emit;
+ }
+}
+// ----
+// ParserError: (45-46): Expected event name or path.