mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
11 lines
227 B
Kotlin
Vendored
11 lines
227 B
Kotlin
Vendored
@Target(AnnotationTarget.EXPRESSION)
|
|
annotation class ExprAnn
|
|
|
|
@Target(AnnotationTarget.FUNCTION)
|
|
annotation class FunAnn
|
|
|
|
fun foo(): Int {
|
|
val x = @ExprAnn fun() = 1
|
|
val y = @FunAnn fun() = 2
|
|
return x() + y()
|
|
} |