mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
327 B
Solidity
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.
|