Files
kotlin-fork/compiler/testData/ir/irText/expressions/simpleOperators.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

44 lines
705 B
Plaintext
Vendored

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