Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/approximationOfBoundedProjection.fir.kt
T
2023-11-01 17:39:33 +00:00

16 lines
234 B
Kotlin
Vendored

// ISSUE: KT-21463
interface BoxWrapper<T, B : Box<T>> {
val box: B
}
interface Box<T> {
val item: T
}
fun <T> getBoxWrapper(): BoxWrapper<T, *> = null!!
class Element
val box: Box<Element> = getBoxWrapper<Element>().box