Files
openide/plugins/kotlin/idea/tests/testData/refactoring/introduceVariable/IntroduceDestructuringDeclarationAndCreateBlock.kt.after
aleksandrina-streltsova 4db2e44f9e [kotlin] refactor "Introduce Variable": use firstIsInstance instead of loop-check
KTIJ-27855

GitOrigin-RevId: d3c2ca95bc8f5d501c1c3dbb151f8c79d7e405a7
2024-01-17 13:01:04 +00:00

8 lines
145 B
Plaintext

fun test(n: Int) {
if (n > 0) {
val (width, height) = Dimension(1, 2)
}
}
data class Dimension(val width: Int, val height: Int)