[NI] Infer type variable to Nothing if all upper constraints are from upper bounds
#KT-32196 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class Inv<T>
|
||||
|
||||
fun <R : Any> Inv<Int>.mapNotNull(transform: (Int) -> R?): Inv<R> = null!!
|
||||
|
||||
fun test(inv: Inv<Int>) {
|
||||
inv.mapNotNull { null }
|
||||
}
|
||||
Reference in New Issue
Block a user