unqualified super: should be able to invoke methods of Any without extra hassle
when Any is an implicit immediate superclass
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
interface IFoo
|
||||
|
||||
interface IBar
|
||||
|
||||
class A : IFoo, IBar {
|
||||
// Unqualified 'super' should be resolved to 'Any'.
|
||||
override fun equals(other: Any?): Boolean = super.equals(other)
|
||||
override fun hashCode(): Int = super.hashCode()
|
||||
override fun toString(): String = super.toString()
|
||||
}
|
||||
Reference in New Issue
Block a user