Files
kotlin-fork/compiler/testData/codegen/box/fieldRename/genericPropertyWithItself.kt
T
2019-11-19 11:00:09 +03:00

15 lines
278 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
public class MPair<out A> (
public val first: A
) {
override fun equals(o: Any?): Boolean {
val t = o as MPair<*>
return first == t.first
}
}
fun box(): String {
val a = MPair("O")
a.equals(a)
return "OK"
}