K1: implement warning for upper bound violated in type alias constructors

Partially implements KT-47473
This commit is contained in:
Mikhail Glukhikh
2022-09-14 16:59:37 +02:00
committed by Space
parent b314672130
commit fb9b1ad0dc
17 changed files with 108 additions and 24 deletions
@@ -18,7 +18,7 @@ val test5 = NA<Int>()
val test6 = NA<<!UPPER_BOUND_VIOLATED!>Any<!>>()
val test7 = NL<Int>()
val test8 = MMMM<<!UPPER_BOUND_VIOLATED!>Int<!>>()
val test9dwd = NL<Any>()
val test9dwd = NL<<!UPPER_BOUND_VIOLATED_WARNING!>Any<!>>()
fun test9(x: TC<Number, Collection<Number>>) {}
fun test10(x: TC<Number, Collection<Int>>) {}