Files
kotlin-fork/compiler/testData/codegen/box/fieldRename/genericPropertyWithItself.kt
T
2013-06-17 15:20:42 +04:00

14 lines
239 B
Kotlin

public class MPair<out A> (
public val first: A
) {
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"
}