stdlib-common: suppress missing Comparator SAM constructor in JVM

This commit is contained in:
Ilya Gorbunov
2018-01-24 20:03:55 +03:00
parent d97707d6f7
commit 10be42ddaa
@@ -25,6 +25,8 @@ expect interface Comparator<T> {
fun compare(a: T, b: T): Int
}
// TODO: Satisfied with SAM-constructor for Comparator interface in JVM
@Suppress("NO_ACTUAL_FOR_EXPECT")
expect inline fun <T> Comparator(crossinline comparison: (a: T, b: T) -> Int): Comparator<T>
// From kotlin.kt