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:
Dmitry Petrov
2015-08-06 14:44:04 +03:00
parent 3b03cfaf4f
commit b59bf6227f
13 changed files with 301 additions and 30 deletions
@@ -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()
}