Minor, move tests on JvmField into subdirectory
This commit is contained in:
+1
-2
@@ -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
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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
-2
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user