diff options
Diffstat (limited to 'test/files/jvm/t2470/Test_1.scala')
-rw-r--r-- | test/files/jvm/t2470/Test_1.scala | 11 |
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) + } +} |