summaryrefslogtreecommitdiff
path: root/test/pending/run/reify_classfileann_b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/reify_classfileann_b.scala')
-rw-r--r--test/pending/run/reify_classfileann_b.scala24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/pending/run/reify_classfileann_b.scala b/test/pending/run/reify_classfileann_b.scala
deleted file mode 100644
index c31826377a..0000000000
--- a/test/pending/run/reify_classfileann_b.scala
+++ /dev/null
@@ -1,24 +0,0 @@
-import scala.reflect._
-import scala.reflect.api._
-import scala.tools.nsc.reporters._
-import scala.tools.nsc.Settings
-import reflect.runtime.Mirror.ToolBox
-
-class ann(bar: String, quux: Array[String] = Array(), baz: ann = null) extends ClassfileAnnotation
-
-object Test extends App {
- // test 1: reify
- val tree = scala.reflect.Code.lift{
- class C {
- def x: Int = {
- 2: @ann(bar="1", quux=Array("2", "3"), baz = new ann(bar = "4"))
- }
- }
- }.tree
- println(tree.toString)
-
- // test 2: import and compile
- val reporter = new ConsoleReporter(new Settings)
- val toolbox = new ToolBox(reporter)
- toolbox.runExpr(tree)
-} \ No newline at end of file