Remove parentheses: add semicolon before lambda if necessary
In2010b175, 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 of2010b175Fixes failing test of "replace contains"
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fun main() {
|
||||
foo();
|
||||
{ foo() } as? () -> Unit
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
Reference in New Issue
Block a user