summaryrefslogblamecommitdiff
path: root/test/files/run/macro-reify-tagful-a/Macros_1.scala
blob: 32b09bdcdf045529ef5c42b742ce5ca976786974 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                       





                                           
                                                                    
                    


     
import scala.reflect.runtime.universe._
import scala.reflect.makro.{Context => Ctx}

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

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