KT-8542 Override dialog: only one class from hierarchy is shown

#KT-8542 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-07-27 16:48:31 +03:00
parent 29379c061a
commit 63dc843c71
14 changed files with 439 additions and 310 deletions
@@ -0,0 +1,36 @@
open class A {
fun a(){}
fun b(){}
}
interface I {
fun b()
}
abstract class B : A() {
open fun f(){}
abstract fun g()
fun h(){}
}
class C : B(), I {
override fun equals(other: Any?): Boolean {
<selection><caret>return super<B>.equals(other)</selection>
}
override fun f() {
super<B>.f()
}
override fun g() {
throw UnsupportedOperationException()
}
override fun hashCode(): Int {
return super<B>.hashCode()
}
override fun toString(): String {
return super<B>.toString()
}
}