Iterate Intention: Add support of destructuring declarations
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
class Foo(val id: Int, val name: String)
|
||||
|
||||
operator fun Foo.component1() = id
|
||||
operator fun Foo.component2() = name
|
||||
operator fun Foo.component3() = "$name: $id"
|
||||
|
||||
fun test() {
|
||||
listOf(Foo(123, "def"), Foo(456, "abc"))<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user