abstract_contract_inheritance.sol 199 B

123456789101112131415
  1. abstract contract a is b {
  2. constructor() {}
  3. }
  4. contract b {
  5. int256 public j;
  6. constructor(int256 _j) {}
  7. }
  8. contract c is a {
  9. int256 public k;
  10. constructor(int256 k) b(k * 2) {}
  11. }