Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/fieldRename/genericPropertyWithItself.kt
T
Ilya Matveev 1b553ebfaf backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
2017-01-20 14:04:04 +03: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"
}