Files
kotlin/compiler/testData/codegen/notNullAssertions/assertionForNotNullCaptured.kt
Denis Zharkov 58caff3411 Minor. Add tests checking not-null assertions
More precisely these tests check cases when expected type
was somehow obtained from captured type (in member scope with projections)
2015-12-28 07:44:56 +03:00

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))
}