Unnecessary parentheses in function call with lambda: fix false positive

So #KT-23452 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-05-01 18:08:29 +03:00
committed by Mikhail Glukhikh
parent 8dbfd85d26
commit b8f3d588b7
4 changed files with 29 additions and 0 deletions
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
fun returnFun(fn: () -> Unit): (() -> Unit) -> Unit = {}
fun test() {
returnFun {} ()<caret> {}
}
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
fun returnFun(fn: () -> Unit, i: Int): (() -> Unit) -> Unit = {}
fun test() {
returnFun({}, 1)()<caret> {}
}