the below code is from xtend's official site.
@TypeAnnotation("some value")
class MyClass {
@FieldAnnotation(children = #[ @MyAnno(true), @MyAnno(false) ])
String myField5.
@MethodAnnotation(children = #[ @MyAnno(true), @MyAnno ])
def String myMethod(@ParameterAnnotation String param) {
//...
}
}
but the line "@MethodAnnotation(children = #[ @MyAnno(true), @MyAnno ])" doesn't work. Eclipse report :
no viable alternative at input ']'
mismatche input '@' expecting ']'