summaryrefslogblamecommitdiff
path: root/test/pending/run/macro-reify-array/Macros_1.scala
blob: f970be5caaf5a5b8138130fb91d6ff9c48784a5a (plain) (tree)
1
2
3
4
5
6
7
8
                                            




                                            
                                                                        
                     


     
import scala.reflect.macros.{Context => Ctx}

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

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