Add WITH_RUNTIME or WITH_REFLECT to boxWithStdlib testData

This commit is contained in:
Alexander Udalov
2016-03-07 12:47:06 +03:00
committed by Alexander Udalov
parent 2564a2f91f
commit 22bfc9786a
525 changed files with 1122 additions and 164 deletions
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.Arrays
fun box(): String {
@@ -8,4 +10,4 @@ fun box(): String {
if (str != "[2, 3, 9]") return str
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.ArrayList
import java.util.Arrays
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.Arrays
fun getCopyToArray(): Array<Int> = Arrays.asList(2, 3, 9).toTypedArray()
@@ -7,4 +9,4 @@ fun box(): String {
if (str != "[2, 3, 9]") return str
return "OK"
}
}
+3 -1
View File
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.Arrays
class MyCollection<T>(val delegate: Collection<T>): Collection<T> by delegate
@@ -18,4 +20,4 @@ fun box(): String {
if (s2 != "[2, 3, 9]") return "s2 = $s2"
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.Arrays
class MyCollection<T>(val delegate: Collection<T>): Collection<T> by delegate {
@@ -33,4 +35,4 @@ fun box(): String {
if (s2 != "[0, 1, 2]") return "s2 = $s2"
return "OK"
}
}