summaryrefslogtreecommitdiff
path: root/test/files/run/t5753_2/Impls_Macros_1.scala
blob: c95c9a41b36bf081957aed47ed8af8f40fbcc517 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import scala.reflect.macros.{BlackboxContext => Ctx}

trait Macro_T {
 def foo[T](c: Ctx)(s: c.Expr[T]) = s
}

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