Java 8 rules for method overrides:
- report errors on implementing methods of Any in interfaces - update testData ~~~ Java 8 override restrictions: interface can't implement a method of 'Any' - update compiler sources
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
interface ILeft {
|
||||
override fun toString(): String
|
||||
}
|
||||
|
||||
interface IRight {
|
||||
override fun toString(): String
|
||||
}
|
||||
|
||||
interface IDiamond : ILeft, IRight {
|
||||
<!METHOD_OF_ANY_IMPLEMENTED_IN_INTERFACE!>override fun toString(): String = "IDiamond"<!>
|
||||
}
|
||||
Reference in New Issue
Block a user