summaryrefslogblamecommitdiff
path: root/test/files/run/t6394a/Macros_1.scala
blob: b934b5ebb11e5890ee40185571c4c1555b066ec2 (plain) (tree)
1
2
3
4
5
6
7
                                           

               
                                              

                       
                                                                    




                            
import scala.reflect.macros.BlackboxContext

object Macros {
  def impl(c:BlackboxContext): c.Expr[Any] = {
    import c.universe._

    val selfTree = This(c.enclosingImpl.symbol.asModule.moduleClass)
    c.Expr[AnyRef](selfTree)
  }

  def foo: Any = macro impl
}