Files
kotlin-fork/idea/testData/inspectionsLocal/incompleteDestructuringInspection/negative.kt
T
kvirolainen 5b1d019bb0 Added Incomplete destructuring inspection
#KT-21223 Fixed
2020-06-30 11:47:27 +02:00

8 lines
150 B
Kotlin
Vendored

// PROBLEM: none
data class Person(val name: String, val age: Int)
fun test() {
val person = Person("", 0)
val (name, age)<caret> = person
}