Incomplete destructuring declaration
Reports incomplete destructuring declaration.
Example:
data class Person(val name: String, val age: Int)
val person = Person("", 0)
val (name) = person
The quick fix completes destructuring declaration with new variables:
data class Person(val name: String, val age: Int)
val person = Person("", 0)
val (name, age) = person
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Kotlin, @snapshot@ |
Last modified: 13 July 2023