diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-02-10 14:48:58 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-02-10 14:48:58 +0000 |
commit | a165920200847b9aa336786dffc5d33ce5b86ab8 (patch) | |
tree | a55a3412c6aedaadbcbb8474e0d9382cca675bd0 /test | |
parent | 96a7efb1fd7db67c21ff5000d343765c925a83d7 (diff) | |
download | scala-a165920200847b9aa336786dffc5d33ce5b86ab8.tar.gz scala-a165920200847b9aa336786dffc5d33ce5b86ab8.tar.bz2 scala-a165920200847b9aa336786dffc5d33ce5b86ab8.zip |
close #2984. review by community.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/annotations.scala | 5 |
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 |