1

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 ']'

redtank
  • 61
  • 5

2 Answers2

0

Sorry, you're stumbling across a bug. Could you please file a ticket at eclipse. Thanks.

Sebastian Zarnekow
  • 6,609
  • 20
  • 23
0

Seems like a bug in 2.4.0. The issue can be found in Bugzilla.

Nils Schmidt
  • 3,702
  • 6
  • 23
  • 28