Minor, move tests on JvmField into subdirectory

This commit is contained in:
Alexander Udalov
2018-07-16 18:24:43 +02:00
parent 715abda908
commit 79c2aa4acf
8 changed files with 113 additions and 50 deletions
@@ -1,6 +1,5 @@
// !LANGUAGE: +JvmFieldInInterface +NestedClassesInAnnotations
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_REFLECT
import kotlin.reflect.full.declaredMemberProperties
@@ -19,4 +18,4 @@ annotation class Foo {
fun box(): String {
val field = Foo.Companion::class.declaredMemberProperties.single()
return (field.annotations.single() as Ann).value + (field.get(Foo.Companion) as Bar).value
}
}
@@ -2,8 +2,8 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
// WITH_REFLECT
import kotlin.reflect.KProperty1
import kotlin.reflect.full.memberProperties
import kotlin.reflect.full.companionObject
@@ -1,6 +1,5 @@
// !LANGUAGE: +JvmFieldInInterface
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_REFLECT
import kotlin.reflect.full.declaredMemberProperties
@@ -19,4 +18,4 @@ interface Foo {
fun box(): String {
val field = Foo.Companion::class.declaredMemberProperties.single()
return (field.annotations.single() as Ann).value + (field.get(Foo.Companion) as Bar).value
}
}