13 lines
283 B
Kotlin
Vendored
13 lines
283 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
@Target(AnnotationTarget.EXPRESSION)
|
|
@Retention(AnnotationRetention.SOURCE)
|
|
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()
|
|
} |