parse_structs_12.sol 319 B

12345678910111213
  1. contract test_struct_parsing {
  2. struct Foo {
  3. bool x;
  4. int32 y;
  5. }
  6. function f() public {
  7. Foo a = Foo(true, true, true);
  8. }
  9. }
  10. // ---- Expect: diagnostics ----
  11. // error: 9:25-46: struct 'Foo' has 2 fields, not 3