summaryrefslogtreecommitdiff
path: root/test/files/run/t5224.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t5224.scala')
-rw-r--r--test/files/run/t5224.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t5224.scala b/test/files/run/t5224.scala
new file mode 100644
index 0000000000..2226a69a05
--- /dev/null
+++ b/test/files/run/t5224.scala
@@ -0,0 +1,9 @@
+import scala.reflect._
+import scala.reflect.api._
+
+class Foo(bar: String) extends ClassfileAnnotation
+
+object Test extends App {
+ val tree = scala.reflect.Code.lift{@Foo(bar = "qwe") class C}.tree
+ println(tree.toString)
+} \ No newline at end of file