Make destructure intention work on library data classes

So #KT-16468 Fixed
So #KT-14402 Fixed
This commit is contained in:
mglukhikh
2017-03-31 13:53:25 +03:00
committed by Mikhail Glukhikh
parent 8a02ce3dc2
commit f13997750f
4 changed files with 33 additions and 12 deletions
@@ -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
}