solidity/test/libsolidity/syntaxTests/underscore/in_modifier.sol
2022-04-01 23:41:18 -05:00

20 lines
298 B
Solidity

contract C {
modifier m() {
_;
}
modifier n() {
string memory _ = "";
_;
revert(_);
}
function f() m() public {
}
function g() n() public {
}
}
// ----
// DeclarationError 3726: (77-92='string memory _'): The name "_" is reserved.