solidity/test/libsolidity/semanticTests/underscore/in_modifier.sol
2020-11-03 15:22:57 +00:00

24 lines
374 B
Solidity

contract C {
modifier m() {
_;
}
modifier n() {
string memory _ = "failed";
_;
revert(_);
}
function f() m() public returns (uint) {
return 88;
}
function g() n() public returns (uint) {
}
}
// ====
// EVMVersion: >=byzantium
// ----
// f() -> 88
// g() -> FAILURE, hex"08c379a0", 0x20, 6, "failed"