aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t7461/Macros_1.scala
blob: 74ebf5af9658d8b7fe8bf25c09bc295ba10417dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import scala.reflect.macros.blackbox.Context
import language.experimental.macros

object Macros {
  def impl(c: Context) = {
    import c.universe._
    val wut = c.typecheck(Select(Literal(Constant(10)), newTermName("$minus")), silent = true)
    // println(showRaw(wut, printIds = true, printTypes = true))
    c.Expr[Unit](q"()")
  }

  def foo = macro impl
}