summaryrefslogtreecommitdiff
path: root/test/files/run/macro-bundle-repl.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-12 00:17:25 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-01-12 18:03:51 +0100
commit3a689f5c426436aea716567625fd6167e57bef92 (patch)
tree46871d70acc7d3cd83e7433f217e362a796e8f30 /test/files/run/macro-bundle-repl.check
parent5cc8f83c681ded7367dc5112f6f9042e9526facf (diff)
downloadscala-3a689f5c426436aea716567625fd6167e57bef92.tar.gz
scala-3a689f5c426436aea716567625fd6167e57bef92.tar.bz2
scala-3a689f5c426436aea716567625fd6167e57bef92.zip
changes bundles to be classes, not traits extending Macro
Adjusts bundle notation to read `class Bundle(val c: Context)` instead of `class Bundle extends Macro`. This avoids calling compileLate in the macro compiler and associated tooling problems.
Diffstat (limited to 'test/files/run/macro-bundle-repl.check')
-rw-r--r--test/files/run/macro-bundle-repl.check12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/run/macro-bundle-repl.check b/test/files/run/macro-bundle-repl.check
index e5456c411b..4a0b421606 100644
--- a/test/files/run/macro-bundle-repl.check
+++ b/test/files/run/macro-bundle-repl.check
@@ -4,17 +4,17 @@ Type :help for more information.
scala> import scala.language.experimental.macros
import scala.language.experimental.macros
-scala> import scala.reflect.macros.blackbox.Macro
-import scala.reflect.macros.blackbox.Macro
+scala> import scala.reflect.macros.blackbox.Context
+import scala.reflect.macros.blackbox.Context
-scala> trait Bar extends Macro { def impl = { import c.universe._; c.Expr[Unit](q"()") } };def bar: Unit = macro Bar.impl
-defined trait Bar
+scala> class Bar(val c: Context) { def impl = { import c.universe._; c.Expr[Unit](q"()") } };def bar: Unit = macro Bar.impl
+defined class Bar
defined term macro bar: Unit
scala> bar
-scala> trait Foo extends Macro { def impl = { import c.universe._; c.Expr[Unit](q"()") } }
-defined trait Foo
+scala> class Foo(val c: Context) { def impl = { import c.universe._; c.Expr[Unit](q"()") } }
+defined class Foo
scala> def foo: Unit = macro Foo.impl
defined term macro foo: Unit