solidity/test/libsolidity/semanticTests/modifiers/function_modifier_multiple_times.sol
2021-04-23 17:00:01 +01:00

19 lines
299 B
Solidity

contract C {
uint256 public a;
modifier mod(uint256 x) {
a += x;
_;
}
function f(uint256 x) public mod(2) mod(5) mod(x) returns (uint256) {
return a;
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256): 3 -> 10
// a() -> 10