Minor, add regression test
#KT-42562
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_REFLECT
|
||||
|
||||
import kotlin.reflect.*
|
||||
|
||||
object E
|
||||
|
||||
operator fun E.getValue(receiver: Any?, property: KProperty<*>): String =
|
||||
if (property.returnType.classifier == String::class) "OK" else "Fail"
|
||||
|
||||
fun box(): String = {
|
||||
val x: String by E
|
||||
x
|
||||
}()
|
||||
Reference in New Issue
Block a user