Files
kotlin-fork/compiler/testData/codegen/box/fieldRename/genericPropertyWithItself.kt
T
Alexander Udalov ec30d52978 Delete Hashable, pull up its members to Any
Extensions on nullable types remain in Library.kt

 #KT-1741 Obsolete
 #KT-2805 Obsolete
 #KT-1365 Fixed
 #KT-4517 In Progress
2014-03-02 19:54:08 +04:00

14 lines
248 B
Kotlin

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"
}