blob: 2e86fcc1e820bc23e15bce74ac87d6243fd07291 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Previous versions of Solidity turned this
// into a parser error (they wrongly recognized
// these functions as state variables of
// function type).
contract C
{
modifier only_owner() { _; }
function foo() only_owner public;
function bar() public only_owner;
}
// ----
// SyntaxError: (203-236): Functions without implementation cannot have modifiers.
// SyntaxError: (241-274): Functions without implementation cannot have modifiers.
|