mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
13 lines
206 B
Kotlin
13 lines
206 B
Kotlin
class Dummy {
|
|
fun equals(other: Any?) = true
|
|
}
|
|
|
|
open data class A(val v: Any)
|
|
|
|
class B(v: Any) : A(v)
|
|
|
|
fun box() : String {
|
|
val a = A(Dummy())
|
|
val b = B(Dummy())
|
|
return if(b == a) "OK" else "fail"
|
|
} |