FE: add new tests around unresolved integer literals

Related to KT-57487, KT-57703
This commit is contained in:
Mikhail Glukhikh
2023-03-29 17:31:07 +02:00
committed by Space Team
parent 70c5978add
commit 27c4a7b7ef
13 changed files with 129 additions and 0 deletions
@@ -0,0 +1,16 @@
// FIR_DUMP
fun <A : Comparable<A>> arrayData(vararg values: A): A = null!!
fun <A> arrayDataNoBound(vararg values: A): A = null!!
fun test(b: Byte) {
select(<!TYPE_MISMATCH!>arrayData(1)<!>, b)
select(<!TYPE_MISMATCH!>id(1)<!>, b)
select(<!TYPE_MISMATCH!>id(arrayData(1))<!>, b)
select(arrayDataNoBound(1), b)
}
fun <S> select(a: S, b: S) = a
fun <I : Comparable<I>> id(arg: I) = arg