Intention to replace a = b with b.also { a = it }
^KT-22420 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
e387d56d93
commit
94970e2d1e
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
object X {
|
||||
var string = "foo"
|
||||
}
|
||||
|
||||
fun main() {
|
||||
"bar".also { X.string = it }
|
||||
}
|
||||
Reference in New Issue
Block a user