Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/options/prefix.kt
T
2018-07-18 14:21:03 +03:00

13 lines
270 B
Kotlin
Vendored

@Target(AnnotationTarget.FUNCTION)
annotation class FunAnn
@Target(AnnotationTarget.EXPRESSION)
@Retention(AnnotationRetention.SOURCE)
annotation class ExprAnn
fun foo(): Int {
var x = 5
<!WRONG_ANNOTATION_TARGET!>@FunAnn<!> ++x
@ExprAnn ++x
return x
}