35fec9e9db
Was broken after eb71e68.
16 lines
455 B
Kotlin
Vendored
16 lines
455 B
Kotlin
Vendored
// "Add annotation target" "true"
|
|
// ERROR: This annotation is not applicable to target 'expression'
|
|
|
|
package test
|
|
|
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.EXPRESSION)
|
|
@Retention(AnnotationRetention.SOURCE)
|
|
annotation class AnnTarget
|
|
|
|
fun println(v: Int) {}
|
|
|
|
fun apply() {
|
|
var v = 0
|
|
@AnnTarget v++
|
|
println(v)
|
|
} |