summaryrefslogtreecommitdiff
path: root/test/files/pos/t7461/Macros_1.scala
blob: 89ae7c70e36eb1ce0410693b30b45e58a295bdaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import scala.reflect.macros.BlackboxContext
import language.experimental.macros

object Macros {
  def impl(c: BlackboxContext) = {
    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
}