summaryrefslogtreecommitdiff
path: root/test/pending/run/macro-reify-array/Macros_1.scala
blob: c1bd4187a6c872194ec22543c3aa6c35a27d2056 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.makro.{Context => Ctx}

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

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