Add intention+inspection to remove empty parentheses from method call with single lambda parameter

Fixes #KT-13519
This commit is contained in:
Kirill Rakhman
2016-08-19 22:24:04 +02:00
parent a683c2b68d
commit 1bc2af6436
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> { }
}