Files
kotlin-fork/compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt.txt
T
2022-03-30 06:27:59 +00:00

24 lines
270 B
Plaintext
Vendored

fun test1(x: Int): Int {
return x.unaryMinus()
}
fun test2(): Int {
return -42
}
fun test3(x: Int): Int {
return x.unaryPlus()
}
fun test4(): Int {
return 42
}
fun test5(x: Boolean): Boolean {
return x.not()
}
fun test6(): Boolean {
return true.not()
}