mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
14 lines
269 B
Kotlin
Vendored
14 lines
269 B
Kotlin
Vendored
@Target(AnnotationTarget.EXPRESSION)
|
|
@Retention(AnnotationRetention.SOURCE)
|
|
annotation class Annotation
|
|
|
|
fun box(): String {
|
|
var v = 0
|
|
@Annotation v += 1 + 2
|
|
if (v != 3) return "fail1"
|
|
|
|
@Annotation v = 4
|
|
if (v != 4) return "fail2"
|
|
|
|
return "OK"
|
|
} |