Files
kotlin-fork/idea/testData/quickfix/removeSingleLambdaParameter/inIf.kt
T
2020-04-02 22:25:20 +03:00

10 lines
419 B
Kotlin
Vendored

// "Remove single lambda parameter declaration" "false"
// ACTION: Add braces to 'if' statement
// ACTION: Convert to multi-line lambda
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Remove explicit lambda parameter types (may break code)
// ACTION: Rename to _
fun test(i: Int) {
val p: (String) -> Boolean =
if (i == 1) { <caret>s: String -> true } else { s: String -> false }
}