summaryrefslogtreecommitdiff
path: root/test/pending/run/macro-reify-array/Macros_1.scala
blob: eea0133feb6ab05144821a8c9c1473a155238b67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.macros.blackbox.Context

object Macros {
  def foo[T](s: String) = macro Impls.foo[T]

  object Impls {
    def foo[T: c.WeakTypeTag](c: Context)(s: c.Expr[T]) = c.universe.reify {
      Array(s.splice)
    }
  }
}