summaryrefslogtreecommitdiff
path: root/test/files/neg/t6082.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-01-13 14:28:33 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-01-13 14:28:33 +0100
commit39352fe0f3048e86b339db4b40851a9f27c7a6ef (patch)
tree61b2a320eaed14eb14531321a4ce0d5f020f02c8 /test/files/neg/t6082.scala
parent5d65772762072aa950a488c666673dc248b01d6d (diff)
downloadscala-39352fe0f3048e86b339db4b40851a9f27c7a6ef.tar.gz
scala-39352fe0f3048e86b339db4b40851a9f27c7a6ef.tar.bz2
scala-39352fe0f3048e86b339db4b40851a9f27c7a6ef.zip
SI-6082 Conditionally expand @ann(x) to @ann(value = x)
... if the annotation has an argument with the name `value`. Doing so unconditionally obscures error messages. We still require that arguments to ClassFileAnnotations are named, other than for this special case.
Diffstat (limited to 'test/files/neg/t6082.scala')
-rw-r--r--test/files/neg/t6082.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/neg/t6082.scala b/test/files/neg/t6082.scala
new file mode 100644
index 0000000000..30de91a4c9
--- /dev/null
+++ b/test/files/neg/t6082.scala
@@ -0,0 +1,2 @@
+class annot(notValue: String) extends annotation.ClassfileAnnotation
+@annot("") class C \ No newline at end of file