diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-05-30 18:10:21 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-05-30 18:10:21 +0000 |
commit | c6cf4fc02204d20f792bd493641d8ccd12421800 (patch) | |
tree | a8827ab270cf77a1c5f36a48a8cf125e1bcfb8c3 /test/files/neg/annot-nonconst.check | |
parent | ab9381b4539097205d19df235f8cc3a5b2349e95 (diff) | |
download | scala-c6cf4fc02204d20f792bd493641d8ccd12421800.tar.gz scala-c6cf4fc02204d20f792bd493641d8ccd12421800.tar.bz2 scala-c6cf4fc02204d20f792bd493641d8ccd12421800.zip |
big overhaul of annotations implementation.
Diffstat (limited to 'test/files/neg/annot-nonconst.check')
-rw-r--r-- | test/files/neg/annot-nonconst.check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/annot-nonconst.check b/test/files/neg/annot-nonconst.check index ef1a72adf2..bc6a0d2c48 100644 --- a/test/files/neg/annot-nonconst.check +++ b/test/files/neg/annot-nonconst.check @@ -1,9 +1,9 @@ annot-nonconst.scala:1: warning: implementation restriction: subclassing Classfile does not make your annotation visible at runtime. If that is what you want, you must write the annotation class in Java. -class Length(n: Int) extends ClassfileAnnotation +class Length(value: Int) extends ClassfileAnnotation ^ -annot-nonconst.scala:5: error: attribute argument needs to be a constant; found: Test.this.n +annot-nonconst.scala:5: error: annotation argument needs to be a constant; found: n @Length(n) def foo = "foo" ^ one warning found |