solidity/test/libsolidity/syntaxTests/viewPureChecker/overriding_no_restrict_warning.sol
2021-04-20 17:38:29 +02:00

9 lines
134 B
Solidity

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