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