summaryrefslogtreecommitdiff
path: root/test/files/run/toolbox_silent_reporter.scala
blob: 6f5687ba4f33d1cf511d2d506e3209e7855572b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import scala.reflect.mirror._

object Test extends App {
  val toolbox = mkToolBox(options = "-deprecation")
  toolbox.runExpr(reify{
    object Utils {
      @deprecated("test", "2.10.0")
      def foo { println("hello") }
    }

    Utils.foo
  }.tree)
  println("============compiler messages============")
  toolbox.frontEnd.infos.foreach(println(_))
  println("=========================================")
}