solidity/test/libsolidity/syntaxTests/viewPureChecker/overriding_no_restrict_warning.sol
2019-11-14 11:49:39 +01:00

8 lines
126 B
Solidity

contract D {
uint x;
function f() virtual public { x = 2; }
}
contract C is D {
function f() public override {}
}