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)
This commit is contained in:
Denis Zharkov
2015-12-22 11:45:02 +03:00
parent 7aaa6422b4
commit 58caff3411
4 changed files with 32 additions and 4 deletions
@@ -0,0 +1,7 @@
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))
}