summaryrefslogblamecommitdiff
path: root/test/files/pos/t6123-explaintypes-macros.scala
blob: e650ad2038709303b2dfdf935cac2731650d82b1 (plain) (tree)
1
2
3
4
5
6
7






                                                                                               
import scala.language.experimental.macros
import scala.reflect.macros.Context

object Macros {
  def printf(format: String, params: Any*): Unit = macro printf_impl
  def printf_impl(c: Context)(format: c.Expr[String], params: c.Expr[Any]*): c.Expr[Unit] = ???
}