mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
Missing check caused exact resolve being applied to every class that had 'equals' overridden
18 lines
307 B
Kotlin
Vendored
18 lines
307 B
Kotlin
Vendored
// p.A
|
|
package p
|
|
|
|
class A(val y: Int) {
|
|
override fun equals(other: Any?): Boolean {
|
|
return super.equals(other)
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
return super.hashCode()
|
|
}
|
|
|
|
override fun toString(): String {
|
|
return super.toString()
|
|
}
|
|
|
|
fun component1() = y
|
|
} |