mutability.sol 307 B

1234567891011121314
  1. contract c {
  2. function test2(int256[] storage A, int256[] storage B)
  3. internal
  4. pure
  5. returns (int256[] storage, int256[] storage)
  6. {
  7. int256[] storage x;
  8. int256[] storage y;
  9. (x, y) = (A, B);
  10. return (x, y);
  11. }
  12. }
  13. // ---- Expect: diagnostics ----