Files
kotlin-fork/idea/testData/intentions/removeUnnecessaryParentheses/lambda2.kt
T
Mikhail Glukhikh 18ea86cfb4 Remove parentheses: add semicolon before lambda if necessary
In 2010b175, it was suggested just not to suggest parentheses removal.
However, it contradicts with behaviour of "Replace contains" which
adds semicolon before lambda in this case. So in this commit I made
behaviour of remove parentheses the same.

This commit reverts production part of 2010b175
Fixes failing test of "replace contains"
2019-01-10 10:45:46 +03:00

7 lines
77 B
Kotlin
Vendored

fun main() {
foo()
<caret>({ foo() } as? () -> Unit)
}
fun foo() {}