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

11 lines
327 B
Solidity

pragma experimental "v0.5.0";
contract C
{
modifier only_owner() { _; }
function foo() only_owner public;
function bar() public only_owner;
}
// ----
// SyntaxError: (80-113): Functions without implementation cannot have modifiers.
// SyntaxError: (118-151): Functions without implementation cannot have modifiers.