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

13 lines
538 B
Solidity

interface I {
modifier m { _; }
modifier mu;
modifier mv virtual { _; }
modifier muv virtual;
}
// ----
// TypeError 6408: (18-35): Modifiers cannot be defined or declared in interfaces.
// TypeError 6408: (40-52): Modifiers cannot be defined or declared in interfaces.
// TypeError 8063: (40-52): Modifiers without implementation must be marked virtual.
// TypeError 6408: (57-83): Modifiers cannot be defined or declared in interfaces.
// TypeError 6408: (88-109): Modifiers cannot be defined or declared in interfaces.