Make destructure intention work on library data classes
So #KT-16468 Fixed So #KT-14402 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8a02ce3dc2
commit
f13997750f
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() = 0 to 10
|
||||
|
||||
fun bar(): Int {
|
||||
val <caret>b = foo()
|
||||
return b.first + b.second
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() = 0 to 10
|
||||
|
||||
fun bar(): Int {
|
||||
val (first, second) = foo()
|
||||
return first + second
|
||||
}
|
||||
Reference in New Issue
Block a user