"Add missing component" intention: fix it works correctly if entries is empty

#KT-36094 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-01-23 22:53:26 +09:00
committed by Ilya Kirillov
parent 0a215cafa7
commit 34cfe7dfdb
4 changed files with 18 additions and 2 deletions
@@ -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
}