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

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

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