1663619606
Otherwise kotlin-reflect won't find it (and it won't even be serialized anyway). #KT-42562 Fixed
12 lines
245 B
Kotlin
Vendored
12 lines
245 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_REFLECT
|
|
import kotlin.reflect.*
|
|
|
|
inline operator fun String.getValue(t:Any?, p: KProperty<*>): String =
|
|
if (p.returnType.classifier == String::class) this else "fail"
|
|
|
|
fun box() = {
|
|
val x by "OK"
|
|
x
|
|
}()
|