summaryrefslogtreecommitdiff
path: root/test/files/jvm/t2470/Test_1.scala
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2009-11-12 13:30:08 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2009-11-12 13:30:08 +0000
commit55ce01a926ec6fcc0474a905a6a0026811527d72 (patch)
treea6600aef9c9c981bda8252c28f1a542acf9a7511 /test/files/jvm/t2470/Test_1.scala
parentdf13e31bbb5f0dedc9739687bae553512a4a2517 (diff)
downloadscala-55ce01a926ec6fcc0474a905a6a0026811527d72.tar.gz
scala-55ce01a926ec6fcc0474a905a6a0026811527d72.tar.bz2
scala-55ce01a926ec6fcc0474a905a6a0026811527d72.zip
Merged revisions 19543,19545-19547 via svnmerge...
Merged revisions 19543,19545-19547 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r19543 | rytz | 2009-11-12 12:10:13 +0100 (Thu, 12 Nov 2009) | 1 line fixed #2470. ........ r19545 | cunei | 2009-11-12 13:07:09 +0100 (Thu, 12 Nov 2009) | 2 lines removed disabled files ........ r19546 | rytz | 2009-11-12 13:31:49 +0100 (Thu, 12 Nov 2009) | 1 line fix #2488. ........ r19547 | odersky | 2009-11-12 14:08:04 +0100 (Thu, 12 Nov 2009) | 1 line Allow protected access to constructor in superclass. Closes #1836 ........
Diffstat (limited to 'test/files/jvm/t2470/Test_1.scala')
-rw-r--r--test/files/jvm/t2470/Test_1.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/jvm/t2470/Test_1.scala b/test/files/jvm/t2470/Test_1.scala
new file mode 100644
index 0000000000..00cf287482
--- /dev/null
+++ b/test/files/jvm/t2470/Test_1.scala
@@ -0,0 +1,11 @@
+object Test {
+ class Foo {
+ @Action(block = Task.Scope.ACTION)
+ def foo = 0
+ }
+
+ def main(args: Array[String]) {
+ val m = classOf[Foo].getDeclaredMethods().find(_.toString.contains("foo")).get
+ println(m.getAnnotations().toList)
+ }
+}