summaryrefslogblamecommitdiff
path: root/test/files/neg/t6539/Macro_1.scala
blob: 69bd53fe0770e6d37ce1c5cc0171941562148ff5 (plain) (tree)
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.macros.compileTimeOnly("cto may only be used as an argument to m")
	def cto = 0
}