payable_01.sol 268 B

123456789101112
  1. pragma solidity 0;
  2. contract c {
  3. int32 i = 0;
  4. function test() payable private {
  5. i = 2;
  6. }
  7. }
  8. // ---- Expect: diagnostics ----
  9. // error: 7:29-36: internal or private function cannot be payable