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