pragma solidity ^0.4.24; contract C { address owner; constructor() {owner = msg.sender;} modifier onlyOwner() { require (msg.sender == owner, "wrong owner"); _; } function x() onlyOwner { this; } } contract Y is C { uint y; function x() { y = 2; } }
0.4.25