mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
16 lines
211 B
Kotlin
Vendored
16 lines
211 B
Kotlin
Vendored
@Target(AnnotationTarget.PROPERTY)
|
|
annotation class Anno
|
|
|
|
inline class Z(val s: String)
|
|
|
|
class A {
|
|
@Anno
|
|
val Z.r: String get() = s
|
|
}
|
|
|
|
fun box(): String {
|
|
with(A()) {
|
|
return Z("OK").r
|
|
}
|
|
}
|