global_functions_06.sol 195 B

1234567
  1. event foo(bool);
  2. function x() pure { emit foo(true); }
  3. // ---- Expect: diagnostics ----
  4. // error: 4:29-43: function declared 'pure' but this expression writes to state