diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2012-05-18 14:15:30 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2012-05-18 14:15:30 +0200 |
commit | 9c6a7ad81bdb632d3da144d58210b5903b86a3e4 (patch) | |
tree | 3ff90b7f8768dc6273a2c5af8608db0f5b44e98e /test/files/run/t5544 | |
parent | ef7708812fac32ca0c2a05330222a6b0806c9054 (diff) | |
download | scala-9c6a7ad81bdb632d3da144d58210b5903b86a3e4.tar.gz scala-9c6a7ad81bdb632d3da144d58210b5903b86a3e4.tar.bz2 scala-9c6a7ad81bdb632d3da144d58210b5903b86a3e4.zip |
Fix SI-5544
Type-check annotations in a context with a localDummy owner
Diffstat (limited to 'test/files/run/t5544')
-rw-r--r-- | test/files/run/t5544/Api_1.scala | 8 | ||||
-rw-r--r-- | test/files/run/t5544/Test_2.scala | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t5544/Api_1.scala b/test/files/run/t5544/Api_1.scala new file mode 100644 index 0000000000..b4c92864de --- /dev/null +++ b/test/files/run/t5544/Api_1.scala @@ -0,0 +1,8 @@ +import scala.annotation.StaticAnnotation + +class ann(val bar: Any) extends StaticAnnotation + +object Api { + @ann({def foo = "foo!!"}) + def foo = println("foo") +} diff --git a/test/files/run/t5544/Test_2.scala b/test/files/run/t5544/Test_2.scala new file mode 100644 index 0000000000..285f8959e0 --- /dev/null +++ b/test/files/run/t5544/Test_2.scala @@ -0,0 +1,3 @@ +object Test extends App { + Api.foo +} |