parse_structs_02.sol 255 B

123456789
  1. contract test_struct_parsing {
  2. struct Foo {
  3. bool a;
  4. uint calldata b;
  5. }
  6. }
  7. // ---- Expect: diagnostics ----
  8. // error: 5:22-30: storage location 'calldata' not allowed for struct field