mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
641 B
Solidity
13 lines
641 B
Solidity
interface I {
|
|
modifier m { _; }
|
|
modifier mu;
|
|
modifier mv virtual { _; }
|
|
modifier muv virtual;
|
|
}
|
|
// ----
|
|
// TypeError 6408: (18-35='modifier m { _; }'): Modifiers cannot be defined or declared in interfaces.
|
|
// TypeError 6408: (40-52='modifier mu;'): Modifiers cannot be defined or declared in interfaces.
|
|
// TypeError 8063: (40-52='modifier mu;'): Modifiers without implementation must be marked virtual.
|
|
// TypeError 6408: (57-83='modifier mv virtual { _; }'): Modifiers cannot be defined or declared in interfaces.
|
|
// TypeError 6408: (88-109='modifier muv virtual;'): Modifiers cannot be defined or declared in interfaces.
|