Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nullableUpperBound.kt
T
Svetlana Isakova 9a0ec7949e fixed bug in constraint system
For parameter type T constraint T? <: Int? should NOT transform to T <: Int, it should be T <: Int?
equality constraint T? = Int? should transform to T <: Int? && T >: Int
2013-10-16 19:51:52 +04:00

9 lines
199 B
Kotlin

package o
fun foo(): String? {
return accept(JV<String?, Unit?>())
}
fun <R, D> accept(<!UNUSED_PARAMETER!>v<!>: JV<R, D>): R<!BASE_WITH_NULLABLE_UPPER_BOUND!>?<!> = null
open class JV<R, D>()