[FE 1.0] Postpone turning NON_VARARG_SPREAD_WARNING into error till 1.8 to have a deprecation cycle of proper duration

^KT-48162
This commit is contained in:
Victor Petukhov
2022-05-04 15:55:58 +02:00
parent a8fc2158d0
commit 94433a1600
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ class Foo<T> {
fun use(arg: Array<String>, s: Collection<String>, x: Foo<String>) {
arr(<!NON_VARARG_SPREAD_ERROR!>*<!>arg)
arr(<!NON_VARARG_SPREAD_ERROR!>*<!>s.toArray())
arr(<!NON_VARARG_SPREAD_WARNING!>*<!>s.toArray())
arr(<!NON_VARARG_SPREAD_ERROR!>*<!>s.toArray2())
arr(<!NON_VARARG_SPREAD_ERROR!>*<!>toArray3(s))
arr(<!NON_VARARG_SPREAD_WARNING!>*<!>toArray3(s))
arr(<!NON_VARARG_SPREAD_ERROR!>*<!>x + x)
arr(<!NON_VARARG_SPREAD_ERROR!>*<!>(x + x))
}