"Add missing component" intention: fix it works correctly if entries is empty
#KT-36094 Fixed
This commit is contained in:
committed by
Ilya Kirillov
parent
0a215cafa7
commit
34cfe7dfdb
@@ -0,0 +1,5 @@
|
||||
data class Foo(val a: String, val b: String, val c: String)
|
||||
|
||||
fun bar(f: Foo) {
|
||||
val (<caret>) = f
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
data class Foo(val a: String, val b: String, val c: String)
|
||||
|
||||
fun bar(f: Foo) {
|
||||
val (a, b, c) = f
|
||||
}
|
||||
Reference in New Issue
Block a user