diff options
Diffstat (limited to 'tests/untried/neg/t6082.check')
-rw-r--r-- | tests/untried/neg/t6082.check | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/neg/t6082.check b/tests/untried/neg/t6082.check new file mode 100644 index 000000000..b68de5ce0 --- /dev/null +++ b/tests/untried/neg/t6082.check @@ -0,0 +1,13 @@ +t6082.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 annot(notValue: String) extends annotation.ClassfileAnnotation + ^ +t6082.scala:2: error: classfile annotation arguments have to be supplied as named arguments +@annot("") class C + ^ +t6082.scala:2: error: annotation annot is missing argument notValue +@annot("") class C + ^ +one warning found +two errors found |