aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/events/event_struct.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/events/event_struct.sol')
-rw-r--r--test/libsolidity/syntaxTests/events/event_struct.sol6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/events/event_struct.sol b/test/libsolidity/syntaxTests/events/event_struct.sol
new file mode 100644
index 00000000..c955dc5e
--- /dev/null
+++ b/test/libsolidity/syntaxTests/events/event_struct.sol
@@ -0,0 +1,6 @@
+contract c {
+ struct S { uint a ; }
+ event E(S);
+}
+// ----
+// TypeError: (51-52): This type is only supported in the new experimental ABI encoder. Use "pragma experimental ABIEncoderV2;" to enable the feature.