FIR checker: report nullable/non-class LHS of class literals

This commit is contained in:
Jinseong Jeon
2021-03-01 12:36:44 -08:00
committed by Dmitriy Novozhilov
parent a6d1d47918
commit e8028e7825
18 changed files with 162 additions and 38 deletions
@@ -10,7 +10,7 @@ fun <T> test5() = listOf(<!OTHER_ERROR!>T<!>::class)
fun <T> test6(): kotlin.reflect.KClass<T> = <!OTHER_ERROR!>T<!>::class
fun <T> test7(): kotlin.reflect.KClass<*> = <!OTHER_ERROR!>T<!>::class
fun test8() = String?::class
fun test8() = <!NULLABLE_TYPE_IN_CLASS_LITERAL_LHS!>String?::class<!>
fun <T> listOf(e: T): List<T> = null!!