diff options
Diffstat (limited to 'test/files/neg/t6539/Macro_1.scala')
-rw-r--r-- | test/files/neg/t6539/Macro_1.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t6539/Macro_1.scala b/test/files/neg/t6539/Macro_1.scala new file mode 100644 index 0000000000..69bd53fe07 --- /dev/null +++ b/test/files/neg/t6539/Macro_1.scala @@ -0,0 +1,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 +} |