6c439ae85a
#KT-34744
18 lines
458 B
Kotlin
Vendored
18 lines
458 B
Kotlin
Vendored
// "Remove parameter 'x'" "false"
|
|
// ACTION: Enable a trailing comma by default in the formatter
|
|
// ACTION: Move lambda argument into parentheses
|
|
// ACTION: Remove explicit lambda parameter types (may break code)
|
|
// ACTION: Rename to _
|
|
// ACTION: Convert to anonymous function
|
|
// ACTION: Convert to single-line lambda
|
|
|
|
fun foo(block: (String, Int) -> Unit) {
|
|
block("", 1)
|
|
}
|
|
|
|
fun bar() {
|
|
foo { x<caret>: String, y: Int ->
|
|
y.hashCode()
|
|
}
|
|
}
|