Handle fake overrides of members of Any in BuiltInsReferenceResolver

This commit is contained in:
Alexander Udalov
2014-02-05 20:03:59 +04:00
parent 83d2436fb9
commit b8ec50f38c
6 changed files with 55 additions and 11 deletions
@@ -9,8 +9,14 @@ class C : Base<String, C, Unit>() {
override fun bar(value: () -> Unit): (String) -> Unit {
return super<Base>.bar(value)
}
override fun equals(other: Any?): Boolean {
return super<Base>.equals(other)
}
override fun foo(value: C): C {
return super<Base>.foo(value)
}
override fun hashCode(): Int {
return super<Base>.hashCode()
}
override val method: (String?) -> String = ?
}
@@ -12,6 +12,12 @@ trait B {
class C : A(), B {
override fun equals(other: Any?): Boolean {
return super<A>.equals(other)
}
override fun hashCode(): Int {
return super<A>.hashCode()
}
override fun internalFun() {
super<A>.internalFun()
}
@@ -8,7 +8,13 @@ class C : A {
override fun bar(): String {
return super<A>.bar()
}
override fun equals(other: Any?): Boolean {
return super<A>.equals(other)
}
override fun foo(value: String): Int {
return super<A>.foo(value)
}
override fun hashCode(): Int {
return super<A>.hashCode()
}
}
@@ -7,9 +7,15 @@ class C : A() {
val constant = 42
// Some comment
override val bar: Int = 0
override fun equals(other: Any?): Boolean {
return super<A>.equals(other)
}
override fun foo(value: Int) {
super<A>.foo(value)
}
override fun hashCode(): Int {
return super<A>.hashCode()
}
/*
Some another comment