dd264cff50
In this commit we have a lot of change in test data. This was caused by the way where we evaluate constants. We split constant evaluation into two distinct parts: only necessary evaluations for `fir2ir` (like const val and annotations) and optimizations for lowering. Now we don't do all constant evaluation on `fir2ir`, but IR dump is executed after this phase, so test data changed. #KT-58923
24 lines
270 B
Kotlin
Vendored
24 lines
270 B
Kotlin
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()
|
|
}
|