summaryrefslogtreecommitdiff
path: root/test/files/pos/annotations.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2010-02-10 14:48:58 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2010-02-10 14:48:58 +0000
commita165920200847b9aa336786dffc5d33ce5b86ab8 (patch)
treea55a3412c6aedaadbcbb8474e0d9382cca675bd0 /test/files/pos/annotations.scala
parent96a7efb1fd7db67c21ff5000d343765c925a83d7 (diff)
downloadscala-a165920200847b9aa336786dffc5d33ce5b86ab8.tar.gz
scala-a165920200847b9aa336786dffc5d33ce5b86ab8.tar.bz2
scala-a165920200847b9aa336786dffc5d33ce5b86ab8.zip
close #2984. review by community.
Diffstat (limited to 'test/files/pos/annotations.scala')
-rw-r--r--test/files/pos/annotations.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/annotations.scala b/test/files/pos/annotations.scala
index d1bd6ba264..5570701011 100644
--- a/test/files/pos/annotations.scala
+++ b/test/files/pos/annotations.scala
@@ -1,4 +1,5 @@
class ann(i: Int) extends Annotation
+class cfann(x: String) extends ClassfileAnnotation
// annotations on abstract types
abstract class C1[@serializable @cloneable +T, U, V[_]]
@@ -35,6 +36,10 @@ object Test {
// annotation on annotation constructor
@(ann @ann(100))(200) def foo() = 300
+
+ // #2984
+ private final val NAMESPACE = "/info"
+ @cfann(x = NAMESPACE + "/index") def index = "success"
}
// test forward references to getters / setters