[IR] dumpKotlinLike: add testdata for FIR tests

This commit is contained in:
Zalim Bashorov
2020-11-20 18:18:14 +03:00
committed by teamcityserver
parent d7bd4240e1
commit c68040753d
298 changed files with 12186 additions and 0 deletions
@@ -0,0 +1,24 @@
interface IA {
}
interface IB {
abstract operator fun IA.compareTo(other: IA): Int
}
fun IB.test1(a1: IA, a2: IA): Boolean {
return greater(arg0 = (<this>, a1).compareTo(other = a2), arg1 = 0)
}
fun IB.test2(a1: IA, a2: IA): Boolean {
return greaterOrEqual(arg0 = (<this>, a1).compareTo(other = a2), arg1 = 0)
}
fun IB.test3(a1: IA, a2: IA): Boolean {
return less(arg0 = (<this>, a1).compareTo(other = a2), arg1 = 0)
}
fun IB.test4(a1: IA, a2: IA): Boolean {
return lessOrEqual(arg0 = (<this>, a1).compareTo(other = a2), arg1 = 0)
}