Adjust testData: JDK collections behave like non-platform in backend

Some of that changes looks like regression and should be fixed soon
This commit is contained in:
Denis Zharkov
2015-07-03 16:24:47 +03:00
parent d350303951
commit a218c1359f
4 changed files with 5 additions and 7 deletions
@@ -3,7 +3,7 @@ fun box(): String {
l.add(1000)
val x = l[0] === 1000
if (x) return "Fail: $x"
if (!x) return "Fail: $x"
val x1 = l[0] === 1
if (x1) return "Fail 1: $x"
val x2 = l[0] === l[0]
@@ -1,8 +1,7 @@
import java.util.Arrays
import java.util.ArrayList
import java.util.*
fun box(): String {
val a = ArrayList<String>()
val a = ArrayList<String>() as AbstractList<String>
a.add(null)
try {
val b: String = a[0]