DeprecatedSymbolUsageFix: keeping functional literal arguments out of parenthesis
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, p2: () -> Boolean)
|
||||
|
||||
fun newFun(p1: String, p2: () -> Boolean, p3: String? = null)
|
||||
}
|
||||
|
||||
fun foo(i: I) {
|
||||
i.<caret>oldFun("a") { true }
|
||||
}
|
||||
Reference in New Issue
Block a user