summaryrefslogtreecommitdiff
path: root/test/files/run/t5753_2/Impls_Macros_1.scala
blob: e23c0b938b7a7e109201ec19e25826865d707bd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import scala.reflect.macros.{Context => 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
}