solidity/test/libsolidity/syntaxTests/modifiers/function_modifier_invocation_local_variables050.sol

8 lines
201 B
Solidity
Raw Normal View History

2018-03-16 11:45:12 +00:00
pragma experimental "v0.5.0";
contract B {
function f() mod(x) pure public { uint x = 7; }
modifier mod(uint a) { if (a > 0) _; }
}
// ----
2018-04-11 15:58:53 +00:00
// DeclarationError: (64-65): Undeclared identifier.