summaryrefslogtreecommitdiff
path: root/test/files/neg/annot-nonconst.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-07-05 07:19:02 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-07-05 07:19:02 +0000
commit3ba0e87fed08f64066bf3412580fcdf635762f31 (patch)
tree123dfca72e28a1e0388d2a0c39808f3b8c29e329 /test/files/neg/annot-nonconst.scala
parent3be21076e049cb966397f3026c7dbb6b96ad57a8 (diff)
downloadscala-3ba0e87fed08f64066bf3412580fcdf635762f31.tar.gz
scala-3ba0e87fed08f64066bf3412580fcdf635762f31.tar.bz2
scala-3ba0e87fed08f64066bf3412580fcdf635762f31.zip
fix #2122, test for #2116
Diffstat (limited to 'test/files/neg/annot-nonconst.scala')
-rw-r--r--test/files/neg/annot-nonconst.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/neg/annot-nonconst.scala b/test/files/neg/annot-nonconst.scala
index f9d044a041..69bb60d34e 100644
--- a/test/files/neg/annot-nonconst.scala
+++ b/test/files/neg/annot-nonconst.scala
@@ -1,6 +1,8 @@
class Length(value: Int) extends ClassfileAnnotation
+class Ann2(value: String) extends ClassfileAnnotation
object Test {
def n = 15
@Length(n) def foo = "foo"
+ @Ann2(null) def bar = "bar"
}