Move statement: move into lambda correctly
#KT-17887 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
19824201e2
commit
3c1b41c020
+12
@@ -0,0 +1,12 @@
|
||||
// MOVE: down
|
||||
fun test() {
|
||||
<caret>val foo = foo()
|
||||
Bar().also {
|
||||
if (foo != null) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(): String? = null
|
||||
|
||||
class Bar
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// MOVE: down
|
||||
fun test() {
|
||||
Bar().also {
|
||||
<caret>val foo = foo()
|
||||
if (foo != null) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(): String? = null
|
||||
|
||||
class Bar
|
||||
Reference in New Issue
Block a user