DeprecatedSymbolUsageFix: dealing with vararg's

This commit is contained in:
Valentin Kipyatkov
2015-05-21 18:00:46 +03:00
parent f8a4d9bf0b
commit 97d3620262
48 changed files with 1035 additions and 232 deletions
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p)'" "true"
fun foo(vararg s: String) = s.joinToString()
@deprecated("", ReplaceWith("newFun(p)"))
fun oldFun(p: String){
newFun(p)
}
fun newFun(p: String){}
fun foo() {
<caret>oldFun(foo(*arrayOf("a", "b")))
}