FIR checker: report KClass with incorrect type argument

This commit is contained in:
Jinseong Jeon
2021-03-05 01:42:06 -08:00
committed by Mikhail Glukhikh
parent bc2228d434
commit 7fff4108b6
12 changed files with 138 additions and 4 deletions
@@ -12,6 +12,8 @@ fun <T> test6(): kotlin.reflect.KClass<<!UPPER_BOUND_VIOLATED!>T<!>> = T::class
fun <T> test7(): kotlin.reflect.KClass<*> = T::class
fun test8() = <!NULLABLE_TYPE_IN_CLASS_LITERAL_LHS!>String?::class<!>
fun <T> test9() where T : Any?, T : Comparable<T> = T::class
fun <T> listOf(e: T): List<T> = null!!
fun <L> locals() {
@@ -21,3 +23,8 @@ fun <L> locals() {
val test3 = L::class
fun test4() = L::class
}
class Foo<T> {
val p = T::class
fun f() = T::class
}