Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/options/prefix.kt
T
2015-09-25 17:46:36 +03:00

12 lines
231 B
Kotlin
Vendored

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