xtend 2.4.0文档中注释的示例不起作用

时间:2013-03-23 10:39:52

标签: xtend

以下代码来自xtend的官方网站。

@TypeAnnotation("some value")
  class MyClass {
    @FieldAnnotation(children = #[ @MyAnno(true), @MyAnno(false) ])
    String myField5.  

    @MethodAnnotation(children = #[ @MyAnno(true), @MyAnno ])
    def String myMethod(@ParameterAnnotation String param) {
      //...
    }
}

但是“@MethodAnnotation(children =#[@ MyNnno(true),@ MyNnno])”行不起作用。 Eclipse报告:

在输入'没有可行的选择']' mismatche输入'@'期待']'

2 个答案:

答案 0 :(得分:0)

抱歉,您遇到了一个错误。你能否在eclipse提交一张票。感谢。

答案 1 :(得分:0)

似乎是2.4.0中的错误。问题可以在Bugzilla

中找到
相关问题