Consider the following:
import java.lang.annotation.*
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@interface A {
Class<? extends Iterable<String>> value()
}
@A(value = { ['1','2','3'] })
class C {
}
The annotation A accepts a closure for the value attribute. However there is a compiler error displayed for this combination.

Consider the following:
The annotation
Aaccepts a closure for thevalueattribute. However there is a compiler error displayed for this combination.