Move statement: move into lambda correctly

#KT-17887 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-08-03 18:02:32 +02:00
committed by Vladimir Dolzhenko
parent 19824201e2
commit 3c1b41c020
4 changed files with 33 additions and 0 deletions
@@ -0,0 +1,12 @@
// MOVE: down
fun test() {
<caret>val foo = foo()
Bar().also {
if (foo != null) {
}
}
}
fun foo(): String? = null
class Bar