JVM IR: cast indy-SAM receiver type from KFunctionN to FunctionN

#KT-46512 Fixed
This commit is contained in:
Alexander Udalov
2021-05-06 18:58:59 +02:00
committed by TeamCityServer
parent 124bd559de
commit d306d8a90e
10 changed files with 61 additions and 1 deletions
@@ -0,0 +1,11 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
class C : Comparable<C> {
override fun compareTo(other: C): Int = 0
}
fun box(): String {
val comparator = Comparable<C>::compareTo
return if (nullsFirst(comparator).compare(C(), C()) == 0) "OK" else "Fail"
}