DeprecatedSymbolUsageFix: dealing with vararg's
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'newFun(*p, 1)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(*p, 1)
|
||||
}
|
||||
|
||||
fun newFun(vararg p: Int){}
|
||||
|
||||
fun foo() {
|
||||
<caret>oldFun(1, 2, 3)
|
||||
}
|
||||
Reference in New Issue
Block a user