summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-26 07:39:27 +0000
committerPaul Phillips <paulp@improving.org>2011-11-26 07:39:27 +0000
commitafc755916f7e67f1f2c899972de8801b1ef62543 (patch)
treefd11b17ba26a42a9509a5c9b35136e02553416e6 /test/files/pos
parent1b98d1fa2a54dc1d8fafed6d270534d729420c21 (diff)
downloadscala-afc755916f7e67f1f2c899972de8801b1ef62543.tar.gz
scala-afc755916f7e67f1f2c899972de8801b1ef62543.tar.bz2
scala-afc755916f7e67f1f2c899972de8801b1ef62543.zip
Annotations reacquainted with reification.
Had AnnotationInfo extend Product3 since it's no longer a case class. Tried to make reflection a little more robust. Closes SI-5223, review by vogt.
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t5223.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/t5223.scala b/test/files/pos/t5223.scala
new file mode 100644
index 0000000000..51682e9254
--- /dev/null
+++ b/test/files/pos/t5223.scala
@@ -0,0 +1,6 @@
+import scala.reflect._
+
+object Foo extends App {
+ Code.lift{def printf(format: String, args: Any*): String = null }
+ Code.lift{def printf(format: String, args: Any*): String = ("abc": @cloneable)}
+}