[NI] Discriminate Nothing? result type from nullability constraints
Nullability constraints should not be chosen when proper argument constraints for variables in contravariant position present. ^KT-32106 Fixed ^KT-33166 Fixed
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
fun <K> id(arg: K): K = arg
|
||||
|
||||
val v = <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Nothing?")!>id(null)<!>
|
||||
Reference in New Issue
Block a user