Fixed EA-57220.

This commit is contained in:
Evgeny Gerashchenko
2014-10-10 23:17:42 +04:00
parent b653598df2
commit fbcfed6757
7 changed files with 35 additions and 2 deletions
@@ -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
}