[FIR] KT-37027: Add 'out' projection to vararg elements

This commit is contained in:
simon.ogorodnik
2020-02-26 17:43:57 +03:00
parent f405b3f827
commit f9483b1f4f
31 changed files with 111 additions and 147 deletions
@@ -1,6 +1,6 @@
fun test() {
val p: Array<String> = arrayOf("a")
<!INAPPLICABLE_CANDIDATE!>foo<!>(*p)
foo(*p)
}
fun foo(vararg a: String?) = a