solidity/test/libsolidity/semanticTests/modifiers/function_modifier_overriding.sol
2020-03-19 14:42:25 +01:00

20 lines
237 B
Solidity

contract A {
function f() public mod returns (bool r) {
return true;
}
modifier mod virtual {
_;
}
}
contract C is A {
modifier mod override {
if (false) _;
}
}
// ----
// f() -> false