f2accb7b9e
#KT-16067 Fixed
8 lines
183 B
Plaintext
Vendored
8 lines
183 B
Plaintext
Vendored
// "Replace 'if' expression with elvis expression" "true"
|
|
|
|
data class IntPair(val first: Int?, val second: Int?)
|
|
|
|
fun f(pair: IntPair): Int {
|
|
val (x, y) = pair
|
|
return x ?: 5
|
|
} |