summaryrefslogtreecommitdiff
path: root/test/files/neg/annot-nonconst.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/annot-nonconst.check')
-rw-r--r--test/files/neg/annot-nonconst.check4
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