New J2K: Fix existing test data

This commit is contained in:
Ilya Kirillov
2018-12-01 15:55:37 +03:00
committed by Ilya Kirillov
parent 5236858c20
commit f752796408
330 changed files with 2800 additions and 60 deletions
@@ -0,0 +1,19 @@
internal class C<T> {
fun foo1(src: Collection<T?>) {
val t = src.iterator().next()
}
fun foo2(src: ArrayList<out T?>) {
val t = src.iterator().next()
}
fun foo3(dst: MutableCollection<in T?>, t: T?) {
dst.add(t)
}
fun foo4(comparable: Comparable<T?>, t: T?): Int {
return comparable.compareTo(t)
}
fun foo5(w: Collection<*>?) {}
}