mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
13 lines
272 B
Kotlin
Vendored
13 lines
272 B
Kotlin
Vendored
import kotlin.reflect.jvm.kotlin
|
|
|
|
class A {
|
|
var String.id: String
|
|
get() = this
|
|
set(value) {}
|
|
}
|
|
|
|
fun box(): String {
|
|
val p = javaClass<A>().kotlin.extensionProperties.single()
|
|
return if ("$p" == "var A.(kotlin.String.)id") "OK" else "Fail $p"
|
|
}
|