data_locations_03.sol 279 B

12345678
  1. contract foo {
  2. enum foo2 { bar1, bar2 }
  3. function bar(foo2 x) public returns (uint calldata) {
  4. }
  5. }
  6. // ---- Expect: diagnostics ----
  7. // error: 4:55-63: data location 'calldata' can only be specified for array, struct or mapping