Redundant arrow: support removing of 'it ->' #KT-28631 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
|
||||
fun print(s: String) {}
|
||||
|
||||
fun bar() {
|
||||
foo { <caret>it ->
|
||||
print(it)
|
||||
print(it)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
|
||||
fun print(s: String) {}
|
||||
|
||||
fun bar() {
|
||||
foo {
|
||||
print(it)
|
||||
print(it)
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(f: () -> Unit) {}
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
|
||||
fun bar() {
|
||||
foo { <caret>_ -> }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(f: () -> Unit) {}
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
|
||||
fun bar() {
|
||||
foo { <caret>}
|
||||
|
||||
Reference in New Issue
Block a user