AddFunctionParametersFix: improve parameter name for 'it' argument

#KT-33297 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-30 22:49:20 +09:00
committed by Mikhail Glukhikh
parent f8f50b2131
commit f1c605d0f7
4 changed files with 28 additions and 0 deletions
@@ -0,0 +1,8 @@
// "Add parameter to constructor 'Foo'" "true"
// WITH_RUNTIME
class Foo
fun test(name: String) {
name.also { Foo(it<caret>) }
}
@@ -0,0 +1,8 @@
// "Add parameter to constructor 'Foo'" "true"
// WITH_RUNTIME
class Foo(s: String)
fun test(name: String) {
name.also { Foo(it) }
}