+= tests fix
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
fun box() : String {
|
||||
val map = java.util.TreeMap<String, String>()
|
||||
map["a"] = "1"
|
||||
map["b"] = "2"
|
||||
|
||||
var list = arrayList<String>()
|
||||
for (e in map) {
|
||||
list += e.getKey()
|
||||
}
|
||||
|
||||
return if(list.size==2) "OK" else "fail"
|
||||
}
|
||||
@@ -3,6 +3,5 @@ import java.util.ArrayList
|
||||
fun box(): String {
|
||||
var x: MutableCollection<Int> = ArrayList()
|
||||
x + ArrayList()
|
||||
x += ArrayList()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
-5
@@ -1753,11 +1753,6 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
|
||||
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/kt1568.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt1733.kt")
|
||||
public void testKt1733() throws Exception {
|
||||
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/kt1733.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt1770.kt")
|
||||
public void testKt1770() throws Exception {
|
||||
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/kt1770.kt");
|
||||
|
||||
Reference in New Issue
Block a user