Disallow empty structs

This commit is contained in:
Alex Beregszaszi
2018-03-27 15:49:41 +01:00
parent 62559cf127
commit b540ba527a
6 changed files with 17 additions and 2 deletions
@@ -7279,7 +7279,7 @@ BOOST_AUTO_TEST_CASE(modifiers_access_storage_pointer)
{
char const* text = R"(
contract C {
struct S { }
struct S { uint a; }
modifier m(S storage x) {
x;
_;
@@ -0,0 +1,5 @@
contract test {
struct A {}
}
// ----
// SyntaxError: Defining empty structs is disallowed.