annot-nonconst.check

来自「JAVA 语言的函数式编程扩展」· CHECK 代码 · 共 11 行

CHECK
11
字号
annot-nonconst.scala:1: warning: implementation restriction: subclassing Classfile does notmake your annotation visible at runtime.  If that is whatyou want, you must write the annotation class in Java.class Length(n: Int) extends ClassfileAnnotation      ^annot-nonconst.scala:5: error: attribute argument needs to be a constant; found: Test.this.n  @Length(n) def foo = "foo"          ^one warning foundone error found

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?