AddFunctionParametersFix: use argument name as parameter name if argument is referenced variable
#KT-14021 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
8b8059acdd
commit
19d1532dc7
+12
@@ -0,0 +1,12 @@
|
||||
// "Add parameter to function 'foo'" "true"
|
||||
// DISABLE-ERRORS
|
||||
fun foo() {}
|
||||
|
||||
fun bar(f: (String) -> Unit) {}
|
||||
|
||||
fun test() {
|
||||
bar {
|
||||
foo(it<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user