Minor, do not use ".java.kotlin" on KClass instances
This commit is contained in:
Vendored
+1
-1
@@ -9,7 +9,7 @@ import kotlin.reflect.jvm.*
|
||||
class K(private val value: String)
|
||||
|
||||
fun box(): String {
|
||||
val p = K::class.java.kotlin.memberProperties.single() as KProperty1<K, String>
|
||||
val p = K::class.memberProperties.single() as KProperty1<K, String>
|
||||
|
||||
try {
|
||||
return p.get(K("Fail: private property should not be accessible by default"))
|
||||
|
||||
Reference in New Issue
Block a user