mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Prohibit interfaces inheriting from non-interfaces
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
contract C {}
|
||||
interface I is C {}
|
||||
|
||||
// ----
|
||||
// TypeError: (29-30): Interfaces can only inherit from other interfaces.
|
||||
Reference in New Issue
Block a user