aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/toolbox_silent_reporter.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/toolbox_silent_reporter.scala')
-rw-r--r--tests/disabled/macro/run/toolbox_silent_reporter.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/toolbox_silent_reporter.scala b/tests/disabled/macro/run/toolbox_silent_reporter.scala
new file mode 100644
index 000000000..72109b822
--- /dev/null
+++ b/tests/disabled/macro/run/toolbox_silent_reporter.scala
@@ -0,0 +1,19 @@
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{universe => ru}
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect.{ToolBox, mkSilentFrontEnd}
+
+object Test extends dotty.runtime.LegacyApp {
+ val toolbox = cm.mkToolBox(options = "-deprecation", frontEnd = mkSilentFrontEnd())
+ toolbox.eval(reify{
+ object Utils {
+ @deprecated("test", "2.10.0")
+ def foo: Unit = { println("hello") }
+ }
+
+ Utils.foo
+ }.tree)
+ println("============compiler messages============")
+ toolbox.frontEnd.infos.foreach(println(_))
+ println("=========================================")
+}