solidity/test/libsolidity/semanticTests/modifiers/function_modifier_empty.sol
2022-05-19 20:23:28 +02:00

20 lines
260 B
Solidity

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