summaryrefslogblamecommitdiff
path: root/test/files/run/toolbox_silent_reporter.scala
blob: 7e9259946b24f57ebbe99fcd6635fedfd814f412 (plain) (tree)
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
  })
  println("============compiler messages============")
  toolbox.reporter.infos.foreach(println(_))
  println("=========================================")
}