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