[NI] Map vararg to Array if it's resolved against type variable

While this behavior is questionable, it's consistent with OI and can
 be changed in future

 #KT-36201 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-01-28 12:58:17 +03:00
parent 35f6810b58
commit e3b6104489
11 changed files with 111 additions and 4 deletions
@@ -0,0 +1,8 @@
package
public fun foo(/*0*/ vararg ints: kotlin.Int /*kotlin.IntArray*/): kotlin.Unit
public fun </*0*/ T> myLet(/*0*/ block: (T) -> kotlin.Unit): kotlin.Unit
public fun </*0*/ T> myLet(/*0*/ t: T, /*1*/ block: (T) -> kotlin.Unit): kotlin.Unit
public fun myLetExplicit1(/*0*/ block: (kotlin.Int) -> kotlin.Unit): kotlin.Unit
public fun myLetExplicit2(/*0*/ block: (kotlin.IntArray) -> kotlin.Unit): kotlin.Unit
public fun test(/*0*/ i: kotlin.IntArray): kotlin.Unit