Files
kotlin-fork/compiler/testData/ir/irText/expressions/conventionComparisons.kt
T
Dmitry Petrov 0b647ac358 Basic class members generation.
Split testData into 'classes' and 'expressions'.
2016-10-18 09:08:32 +03:00

10 lines
235 B
Kotlin
Vendored

interface IA
interface IB {
operator fun IA.compareTo(other: IA): Int
}
fun IB.test1(a1: IA, a2: IA) = a1 > a2
fun IB.test2(a1: IA, a2: IA) = a1 >= a2
fun IB.test3(a1: IA, a2: IA) = a1 < a2
fun IB.test4(a1: IA, a2: IA) = a1 <= a2