AddFunctionParametersFix: improve parameter name for 'it' argument
#KT-33297 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
f8f50b2131
commit
f1c605d0f7
@@ -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) }
|
||||
}
|
||||
Reference in New Issue
Block a user