Merge pull request #931 from cypressious/empty_parens

Add intention+inspection to remove empty parentheses from method call with single lambda parameter
This commit is contained in:
Mikhail Glukhikh
2016-08-22 11:34:24 +03:00
committed by GitHub
10 changed files with 96 additions and 0 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.RemoveEmptyParenthesesFromLambdaCallIntention
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun foo() {
listOf(1).forEach()<caret> { }
}
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun foo() {
listOf(1).forEach<caret> { }
}