mutability_03.sol 255 B

123456789
  1. contract test {
  2. int64 foo = 1844674;
  3. function bar() public view {
  4. foo = 102;
  5. }
  6. }
  7. // ---- Expect: diagnostics ----
  8. // error: 5:17-20: function declared 'view' but this expression writes to state