[FIR] Improve mapping arguments to parameters

This commit is contained in:
Dmitriy Novozhilov
2020-02-14 11:10:46 +03:00
parent 2e597a3a32
commit e696d1d06a
43 changed files with 498 additions and 241 deletions
@@ -2,7 +2,7 @@
fun <T> array(vararg x: T): Array<T> = null!!
open class B(vararg y: String) {
constructor(x: Int): <!INAPPLICABLE_CANDIDATE!>this<!>(x.toString(), *array("1"), "2")
constructor(x: Int): this(x.toString(), *array("1"), "2")
}
class A : B {
@@ -13,5 +13,5 @@ class A : B {
val b1 = B()
val b2 = B("1", "2", "3")
val b3 = <!INAPPLICABLE_CANDIDATE!>B<!>("1", *array("2", "3"), "4")
val b3 = B("1", *array("2", "3"), "4")
val b4 = B(1)