Files
kotlin-fork/idea/testData/intentions/convertToScope/convertToAlso/withNotSimpleInitializer2.kt.after
T
Igor Yakovlev 5a511dd635 Refactor and fix of the run/apply/let/also intention converter
1) Optimize and refactored code
2) Added support for correct renaming of target identifier to this/it
3) Added support of cases with difficult application targets (like: var x = 1 + 2)
4) Show error hint when refactoring failed for some reason
5) Improved intention applicability checking to eliminate false-positive cases
6) Fixed EA-209577
2019-08-23 19:37:00 +03:00

10 lines
164 B
Plaintext
Vendored

// WITH_RUNTIME
class MyClass {
fun foo() {
val c = (2 + 3).also {
it.div(2)
it.div(it + 2 + it) + it.div(it)
}
}
}