diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-01-30 17:21:38 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-01-31 11:08:44 +0100 |
commit | 29892586382ef846b0ad46271c2fba9970943faf (patch) | |
tree | cee70cb82dc15ca04a64265b56b91d2e0aca4adc /test/files/neg | |
parent | 2fa859e1b3eb2ac57058feaba87d96adfbac9209 (diff) | |
download | scala-29892586382ef846b0ad46271c2fba9970943faf.tar.gz scala-29892586382ef846b0ad46271c2fba9970943faf.tar.bz2 scala-29892586382ef846b0ad46271c2fba9970943faf.zip |
SI-6539 moves @compileTimeOnly away from scala-reflect
The move is done to provide forward compatibility with 2.10.0.
The annotation isn't replaced with one of the macro-based solutions
right away (see comments for more information about those), because
we lack necessary tech in 2.10.x.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t6539/Macro_1.scala | 2 | ||||
-rw-r--r-- | test/files/neg/t6539/Test_2.scala | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/files/neg/t6539/Macro_1.scala b/test/files/neg/t6539/Macro_1.scala index ed52776d95..4f7d289e2e 100644 --- a/test/files/neg/t6539/Macro_1.scala +++ b/test/files/neg/t6539/Macro_1.scala @@ -5,6 +5,6 @@ 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") + @reflect.internal.annotations.compileTimeOnly("cto may only be used as an argument to " + "m") def cto = 0 } diff --git a/test/files/neg/t6539/Test_2.scala b/test/files/neg/t6539/Test_2.scala index 5a602879ec..26f4504222 100644 --- a/test/files/neg/t6539/Test_2.scala +++ b/test/files/neg/t6539/Test_2.scala @@ -3,4 +3,10 @@ object Test { M.m(M.cto, ()) // error M.m((), M.cto) // okay M.cto // error + + locally { + val expr = scala.reflect.runtime.universe.reify(2) + val splice = expr.splice + val value = expr.value + } } |