Files
kotlin-fork/compiler/testData/ir/irText/expressions/simpleOperators.kt.txt
T
2024-02-16 10:19:38 +00:00

45 lines
706 B
Kotlin
Vendored

fun test1(a: Int, b: Int): Int {
return a.plus(other = b)
}
fun test1x(a: Int, b: Int): Int {
return a.plus(other = b)
}
fun test2(a: Int, b: Int): Int {
return a.minus(other = b)
}
fun test2x(a: Int, b: Int): Int {
return a.minus(other = b)
}
fun test3(a: Int, b: Int): Int {
return a.times(other = b)
}
fun test3x(a: Int, b: Int): Int {
return a.times(other = b)
}
fun test4(a: Int, b: Int): Int {
return a.div(other = b)
}
fun test4x(a: Int, b: Int): Int {
return a.div(other = b)
}
fun test5(a: Int, b: Int): Int {
return a.rem(other = b)
}
fun test5x(a: Int, b: Int): Int {
return a.rem(other = b)
}
fun test6(a: Int, b: Int): IntRange {
return a.rangeTo(other = b)
}