mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow modifier declarations and definitions in interfaces
This commit is contained in:
@@ -6,12 +6,14 @@
|
||||
Interfaces
|
||||
**********
|
||||
|
||||
Interfaces are similar to abstract contracts, but they cannot have any functions implemented. There are further restrictions:
|
||||
Interfaces are similar to abstract contracts, but they cannot have any functions implemented.
|
||||
There are further restrictions:
|
||||
|
||||
- They cannot inherit from other contracts, but they can inherit from other interfaces.
|
||||
- All declared functions must be external.
|
||||
- They cannot declare a constructor.
|
||||
- They cannot declare state variables.
|
||||
- They cannot declare modifiers.
|
||||
|
||||
Some of these restrictions might be lifted in the future.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user