KT-940 proper calculation of bridge methods

This commit is contained in:
Alex Tkachman
2012-01-10 19:50:13 +02:00
parent 0af995d79b
commit 2e0b1863cd
3 changed files with 39 additions and 7 deletions
@@ -0,0 +1,15 @@
import java.util.*
fun box() : String {
val w = object : Comparator<String?> {
override fun compare(o1 : String?, o2 : String?) : Int {
val l1 : Int = o1?.length ?: 0
val l2 = o2?.length ?: 0
return l1 - l2
}
}
w.compare("aaa", "bbb")
return "OK"
}