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





                                            
                                                                    
                     


     
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.universe.reify {
      Array(s.splice)
    }
  }
}