summaryrefslogtreecommitdiff
path: root/test/files/neg/t6539/Macro_1.scala
blob: 60db669c4630c05607cb61bfbd5fcee4169d5ddc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import language.experimental.macros
import scala.reflect.macros.blackbox.Context

object M {
  def m(a: Any, b: Any): Any = macro mImpl
  def mImpl(c: Context)(a: c.Expr[Any], b: c.Expr[Any]) = c.universe.reify(println(a.splice))

  @reflect.internal.annotations.compileTimeOnly("cto may only be used as an argument to " + "m")
  def cto = 0
}