summaryrefslogtreecommitdiff
path: root/test/files/run/t7617b/Macros_1.scala
blob: b1406f30bb47c5c00c975ffcdf5fb8043a982196 (plain) (blame)
1
2
3
4
5
6
7
8
import scala.reflect.macros.BlackboxContext

object Macros {
  def impl(c: BlackboxContext)(name: c.Expr[String])(value: c.Expr[Any]) = {
    import c.universe._
    reify(println(s"${name.splice} = ${value.splice}"))
  }
}