Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/vararg/vararg2Runtime.kt
T
Dmitry Jemerov e2f75463d7 Rewrite AbstractQuickFixTest based on light fixture test case
Don't reconfigure runtime before every test. For consistency,
mark tests that require the runtime with directives instead of relying
on test file names.
2017-03-27 19:48:43 +02:00

14 lines
253 B
Kotlin
Vendored

// "Replace with 'newFun(p1, *p2)'" "true"
// WITH_RUNTIME
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
fun oldFun(p1: String, vararg p2: Int){
newFun(p1, *p2)
}
fun newFun(p1: String, vararg p2: Int){}
fun foo() {
<caret>oldFun("a", 1)
}