mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added error for interface function with modifiers; test case
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
interface I {
|
||||
function f() external m pure returns (uint);
|
||||
modifier m() { _; }
|
||||
}
|
||||
// ----
|
||||
// SyntaxError: (16-60): Functions in interfaces cannot have modifiers.
|
||||
Reference in New Issue
Block a user