New J2K: Fix existing test data

This commit is contained in:
Ilya Kirillov
2019-03-26 22:32:42 +03:00
committed by Ilya Kirillov
parent 76b73542d9
commit b13f7431f2
121 changed files with 655 additions and 324 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
// ERROR: Unresolved reference: LinkedList
import java.util.ArrayList
import java.util.*
class ForEach {
fun test() {
val xs: ArrayList<Any?> = ArrayList()
val ys: MutableList<Any?> = LinkedList<Any?>()
val ys: MutableList<Any?> = LinkedList<Any>()
for (x in xs) {
ys.add(x)
}
+2 -4
View File
@@ -1,12 +1,10 @@
// ERROR: Unresolved reference: LinkedList
// ERROR: Null can not be a value of a non-null type Any
// ERROR: Null can not be a value of a non-null type Any
import java.util.ArrayList
import java.util.*
class Lists {
fun test() {
val xs: MutableList<Any?> = ArrayList()
val ys: MutableList<Any?> = LinkedList<Any?>()
val ys: MutableList<Any?> = LinkedList<Any>()
val zs: ArrayList<Any?> = ArrayList()
xs.add(null)
ys.add(null)