Files
kotlin-fork/idea/testData/refactoring/extractFunction/initializers/properties/nestedInMultiDeclaration.kt
T
2014-09-05 17:39:53 +04:00

13 lines
273 B
Kotlin

data class Pair<A, B>(val a: A, val b: B)
fun <A, B> A.to(b: B) = Pair(this, b)
// SIBLING:
fun foo() {
val (a, b) =
if (true) {
<selection>1 + 1</selection>
1 to 2
} else {
2 to 3
}
}