diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-10-02 17:22:07 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-11-12 18:40:01 -0800 |
commit | 0d5c2f76ea30c6a45471dac635f035e931075453 (patch) | |
tree | 15f477eb256a65f2d260b940f1a3c9bed113a3db /test/files/run/macro-sip19 | |
parent | 6038bac3513a834e67ab4074c2c7b03aac11b1b3 (diff) | |
download | scala-0d5c2f76ea30c6a45471dac635f035e931075453.tar.gz scala-0d5c2f76ea30c6a45471dac635f035e931075453.tar.bz2 scala-0d5c2f76ea30c6a45471dac635f035e931075453.zip |
blackbox restriction #3: can't affect implicit search
When an application of a blackbox macro is used as an implicit candidate,
no expansion is performed until the macro is selected as the result of
the implicit search.
This makes it impossible to dynamically calculate availability of
implicit macros.
Diffstat (limited to 'test/files/run/macro-sip19')
-rw-r--r-- | test/files/run/macro-sip19/Impls_Macros_1.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/macro-sip19/Impls_Macros_1.scala b/test/files/run/macro-sip19/Impls_Macros_1.scala index 72a3c2568d..f830d2af0d 100644 --- a/test/files/run/macro-sip19/Impls_Macros_1.scala +++ b/test/files/run/macro-sip19/Impls_Macros_1.scala @@ -1,7 +1,7 @@ -import scala.reflect.macros.BlackboxContext +import scala.reflect.macros.WhiteboxContext object Macros { - def impl(c: BlackboxContext) = { + def impl(c: WhiteboxContext) = { import c.universe._ val Apply(fun, args) = c.enclosingImplicits(0).tree val fileName = fun.pos.source.file.file.getName |