2564a2f91f
Change some tests to either include reflection or to avoid using it
17 lines
337 B
Kotlin
Vendored
17 lines
337 B
Kotlin
Vendored
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
class Delegate {
|
|
operator fun getValue(t: Any?, p: KProperty<*>): String {
|
|
p.parameters
|
|
p.returnType
|
|
p.annotations
|
|
return p.toString()
|
|
}
|
|
}
|
|
|
|
val prop: String by Delegate()
|
|
|
|
fun box() = if (prop == "val prop: kotlin.String") "OK" else "Fail: $prop"
|