Fix testdata for tests which use varargs
Change tests to use new syntax for array literals to prevent deprecation warnings (see KT-20171).
This commit is contained in:
+2
-2
@@ -23,5 +23,5 @@ public @interface A {
|
||||
@A fun test8() {}
|
||||
|
||||
@A(x = Any::class, <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>*arrayOf("5", "6")<!>, <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>"7"<!>, y = 3) fun test9() {}
|
||||
@A(x = Any::class, value = *arrayOf("5", "6"), <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>"7"<!>, y = 3) fun test10() {}
|
||||
@A(x = Any::class, value = *arrayOf("5", "6", "7"), y = 3) fun test11() {}
|
||||
@A(x = Any::class, value = ["5", "6"], <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>"7"<!>, y = 3) fun test10() {}
|
||||
@A(x = Any::class, value = ["5", "6", "7"], y = 3) fun test11() {}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ public @interface A {
|
||||
// FILE: b.kt
|
||||
@A(String::class, Int::class) class MyClass1
|
||||
@A(*arrayOf(String::class, Int::class)) class MyClass2
|
||||
@A(value = *arrayOf(String::class, Int::class)) class MyClass3
|
||||
@A(value = [String::class, Int::class]) class MyClass3
|
||||
|
||||
Reference in New Issue
Block a user