FIR checker: report nullable/non-class LHS of class literals
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
a6d1d47918
commit
e8028e7825
+1
-1
@@ -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!!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user