contract_storage_immutable.sol 190 B

123456789101112
  1. contract foo {
  2. uint256 public immutable bar;
  3. constructor(uint256 v) {
  4. bar = v;
  5. }
  6. function hit() public {
  7. // this is not permitted
  8. // bar++;
  9. }
  10. }