Disallow structs in events without ABIEncoderV2

This commit is contained in:
Leonardo Alt
2018-08-03 13:41:27 +02:00
parent da6cefd475
commit 20c6cea7bb
10 changed files with 39 additions and 0 deletions
@@ -0,0 +1,7 @@
contract C {
function f() public {
emit;
}
}
// ----
// ParserError: (45-46): Expected event name or path.
@@ -0,0 +1,10 @@
contract C {
uint256 Test;
function f() public {
emit Test();
}
}
// ----
// TypeError: (63-69): Type is not callable
// TypeError: (63-67): Expression has to be an event invocation.