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:
+13
@@ -0,0 +1,13 @@
|
||||
interface IA
|
||||
|
||||
interface IB : IA {
|
||||
<!METHOD_OF_ANY_IMPLEMENTED_IN_INTERFACE!>override fun toString(): String = "IB"<!>
|
||||
}
|
||||
|
||||
interface IC : IB {
|
||||
<!METHOD_OF_ANY_IMPLEMENTED_IN_INTERFACE!>override fun toString(): String = "IC"<!>
|
||||
}
|
||||
|
||||
interface ID : IC {
|
||||
<!METHOD_OF_ANY_IMPLEMENTED_IN_INTERFACE!>override fun toString(): String = "ID"<!>
|
||||
}
|
||||
Reference in New Issue
Block a user