summaryrefslogtreecommitdiff
path: root/test/files/jvm/annotations.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-22 08:13:48 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2012-12-28 15:16:11 -0800
commit422f461578ae0547181afe6d2c0c52ea1071d37b (patch)
tree21607c7bf86568c40bb90daad1233e13b5d57eef /test/files/jvm/annotations.scala
parent394cc426c1ff1da53146679b4e2995ece52a133e (diff)
downloadscala-422f461578ae0547181afe6d2c0c52ea1071d37b.tar.gz
scala-422f461578ae0547181afe6d2c0c52ea1071d37b.tar.bz2
scala-422f461578ae0547181afe6d2c0c52ea1071d37b.zip
Shored up a hidden dealiasing dependency.
Like the comment says: // This way typedNew always returns a dealiased type. This // used to happen by accident for instantiations without type // arguments due to ad hoc code in typedTypeConstructor, and // annotations depended on it (to the extent that they worked, // which they did not when given a parameterized type alias // which dealiased to an annotation.) typedTypeConstructor // dealiases nothing now, but it makes sense for a "new" to // always be given a dealiased type. PS: Simply running the test suite is becoming more difficult all the time. Running "ant test" includes time consuming activities of niche interest such as all the osgi tests, but test.suite manages to miss the continuations tests.
Diffstat (limited to 'test/files/jvm/annotations.scala')
-rw-r--r--test/files/jvm/annotations.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/jvm/annotations.scala b/test/files/jvm/annotations.scala
index 66ebde592b..77a45fae89 100644
--- a/test/files/jvm/annotations.scala
+++ b/test/files/jvm/annotations.scala
@@ -101,6 +101,12 @@ object Test4 {
type myAnn = SourceAnnotation @beanGetter @field
@BeanProperty @myAnn("http://eppli.com") var z = 0
+
+ type myAnn2[T] = SourceAnnotation @beanGetter @field
+ @BeanProperty @myAnn2[String]("http://eppli.com") var z2 = 0
+
+ type myAnn3[CC[_]] = SourceAnnotation @beanGetter @field
+ @BeanProperty @myAnn3[List]("http://eppli.com") var z3 = 0
}
class Foo10(@SourceAnnotation("on param 1") val name: String)
class Foo11(@(SourceAnnotation @scala.annotation.meta.field)("on param 2") val name: String)