Prohibit interfaces inheriting from non-interfaces

This commit is contained in:
Jason Cobb
2020-01-22 09:40:40 -05:00
parent 1cc8ce1656
commit 573a054d5d
2 changed files with 8 additions and 0 deletions
@@ -0,0 +1,5 @@
contract C {}
interface I is C {}
// ----
// TypeError: (29-30): Interfaces can only inherit from other interfaces.