Fixed EA-57220.
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "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
|
||||
}
|
||||
Reference in New Issue
Block a user