FIR: Adjust test data

Currently, we've got two places where NO_COMPANION_OBJECT is reported
and they perform it kind of differently
This commit is contained in:
Denis.Zharkov
2021-09-07 13:13:21 +03:00
committed by teamcityserver
parent 9ca96ebbd2
commit 6e6be7c953
4 changed files with 4 additions and 4 deletions
@@ -10,7 +10,7 @@ fun <T : Any> T?.sure() : T = this!!
fun <E> List<*>.toArray(ar: Array<E>): Array<E> = ar
fun testArrays(ci: List<Int?>, cii: List<Int?>?) {
val c1: Array<Int?> = cii.sure().toArray(<!ARGUMENT_TYPE_MISMATCH, NO_COMPANION_OBJECT!>Array<!><Int?>)
val c1: Array<Int?> = cii.sure().toArray(<!ARGUMENT_TYPE_MISMATCH, NO_COMPANION_OBJECT!>Array<Int?><!>)
val c2: Array<Int?> = ci.toArray(Array<Int?>(<!NO_VALUE_FOR_PARAMETER, NO_VALUE_FOR_PARAMETER!>)<!>)