blob: 3f651c9a43ba8ea50a8804555af205c0b60f1976 (
plain) (
tree)
|
|
import scala.reflect.macros.Context
import scala.reflect.macros.Macro
trait Impl extends Macro {
def mono = c.literalUnit
def poly[T: c.WeakTypeTag] = c.literal(c.weakTypeOf[T].toString)
def weird = macro mono
}
object Macros {
def mono = macro Impl.mono
def poly[T] = macro Impl.poly[T]
}
|