Files
kotlin-fork/idea/testData/refactoring/extractFunction/initializers/properties/nestedInMultiDeclaration.kt.after
T
2014-09-10 16:44:46 +04:00

15 lines
220 B
Plaintext

// WITH_RUNTIME
// SIBLING:
fun foo() {
val (a, b) =
if (true) {
unit()
1 to 2
} else {
2 to 3
}
}
private fun unit() {
1 + 1
}