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:
Dmitry Savvinov
2017-10-11 18:03:21 +03:00
parent fd1aa97d0c
commit 87b85ce978
3 changed files with 4 additions and 4 deletions
@@ -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() {}