Unnecessary parentheses in function call with lambda: fix false positive
So #KT-23452 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8dbfd85d26
commit
b8f3d588b7
@@ -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> {}
|
||||
}
|
||||
Reference in New Issue
Block a user