mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
More precisely these tests check cases when expected type was somehow obtained from captured type (in member scope with projections)
8 lines
158 B
Kotlin
Vendored
8 lines
158 B
Kotlin
Vendored
class A<T> {
|
|
fun add(element: T) {}
|
|
}
|
|
|
|
public fun <R : Any> foo(x: MutableCollection<in R>, block: java.util.AbstractList<R>) {
|
|
x.add(block.get(0))
|
|
}
|