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
+4
@@ -0,0 +1,4 @@
|
||||
var x = 5
|
||||
fun foo() {
|
||||
<spot>10.also { x = it }</spot>
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
var x = 5
|
||||
fun foo() {
|
||||
<spot>x = 10</spot>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a <b>variable assignment</b> to a variable assignment expression.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user