Files
aleksandrina-streltsova e80a56e53b [kotlin] K2 Introduce Variable: use psi matcher to enable extraction of multiple occurrences
^KTIJ-27679 Fixed
^KTIJ-27681 Fixed
^KTIJ-27861 Fixed

GitOrigin-RevId: 5a33e3dba0f7f7d94997fdeaf6294db26ec20154
2024-02-18 22:13:56 +00:00

8 lines
119 B
Plaintext

fun foo(a: Int): Int {
val i = a + 1
return if (a > 1) {
i * (a - 1)
} else {
a * i
}
}