diff options
Diffstat (limited to 'tests/pending/run/toolbox_console_reporter.scala')
-rw-r--r-- | tests/pending/run/toolbox_console_reporter.scala | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/pending/run/toolbox_console_reporter.scala b/tests/pending/run/toolbox_console_reporter.scala deleted file mode 100644 index 53cbcb0fb..000000000 --- a/tests/pending/run/toolbox_console_reporter.scala +++ /dev/null @@ -1,28 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.reflect.runtime.{universe => ru} -import scala.reflect.runtime.{currentMirror => cm} -import scala.tools.reflect.{ToolBox, mkConsoleFrontEnd} - -object Test extends dotty.runtime.LegacyApp { - //val oldErr = Console.err; - val baos = new java.io.ByteArrayOutputStream() - val errs = new java.io.PrintStream(baos) - (Console withErr errs) { - val toolbox = cm.mkToolBox(frontEnd = mkConsoleFrontEnd(), options = "-deprecation") - toolbox.eval(reify{ - object Utils { - @deprecated("test", "2.10.0") - def foo: Unit = { println("hello") } - } - - Utils.foo - }.tree) - println("============compiler console=============") - errs.flush() - println(baos.toString); - println("=========================================") - println("============compiler messages============") - toolbox.frontEnd.infos.foreach(println(_)) - println("=========================================") - } -} |