New J2K: Fix existing test data
This commit is contained in:
committed by
Ilya Kirillov
parent
76b73542d9
commit
b13f7431f2
+2
-2
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user