parse_structs.sol 300 B

12345678910
  1. abstract contract test_struct_parsing {
  2. struct Foo {
  3. bool a;
  4. uint a;
  5. }
  6. }
  7. // ---- Expect: diagnostics ----
  8. // error: 5:22-23: struct 'Foo' has duplicate struct field 'a'
  9. // note 4:17-23: location of previous declaration of 'a'