Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/preferNothingToBound.kt
T
Pavel Kirpichenkov 7ee71450bc [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
2019-12-25 14:59:06 +03:00

4 lines
98 B
Kotlin
Vendored

fun <K> id(arg: K): K = arg
val v = <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Nothing?")!>id(null)<!>