summaryrefslogtreecommitdiff
path: root/test/files/run/macro-reify-tagful-a/Macros_1.scala
blob: 0eac74236fa6f80a5e95c670fc127934dd3dff44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.reflect.runtime.universe._
import scala.reflect.macros.{Context => Ctx}

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

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