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_REFLECT
interface A {
fun foo(): Collection<Any>
}
@@ -1,3 +1,4 @@
// WITH_REFLECT
//test for KT-3722 Write correct generic type information for generated fields
import kotlin.properties.Delegates
@@ -1,3 +1,5 @@
// WITH_REFLECT
class Z<T> {}
class TParam {}
@@ -1,3 +1,5 @@
// WITH_REFLECT
class B<M>
interface A<T, Y : B<T>> {
@@ -20,4 +22,4 @@ fun box(): String {
if (declaredProperty.toGenericString() != "public static <T_I1,Y,T> T A\$DefaultImpls.getZ(A<T_I1, Y>,T)") return "fail 2: ${declaredProperty.toGenericString()}"
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_REFLECT
package test
class G<T>(val s: T) {
@@ -23,4 +25,4 @@ fun box(): String {
val genericTypeInClass = ErrorsJvmClass::class.java.getField("param").getGenericType()
if (genericTypeInClass.toString() != "test.G<java.lang.String>") return "fail1: genericTypeInClass"
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_REFLECT
package test
open class B