diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-01-12 00:17:25 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-01-12 18:03:51 +0100 |
commit | 3a689f5c426436aea716567625fd6167e57bef92 (patch) | |
tree | 46871d70acc7d3cd83e7433f217e362a796e8f30 /test/files/run/macro-bundle-repl.scala | |
parent | 5cc8f83c681ded7367dc5112f6f9042e9526facf (diff) | |
download | scala-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.scala')
-rw-r--r-- | test/files/run/macro-bundle-repl.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/macro-bundle-repl.scala b/test/files/run/macro-bundle-repl.scala index 4dfd450b69..8084418454 100644 --- a/test/files/run/macro-bundle-repl.scala +++ b/test/files/run/macro-bundle-repl.scala @@ -3,10 +3,10 @@ import scala.tools.partest.ReplTest object Test extends ReplTest { def code = """ import scala.language.experimental.macros -import scala.reflect.macros.blackbox.Macro -trait Bar extends Macro { def impl = { import c.universe._; c.Expr[Unit](q"()") } };def bar: Unit = macro Bar.impl +import scala.reflect.macros.blackbox.Context +class Bar(val c: Context) { def impl = { import c.universe._; c.Expr[Unit](q"()") } };def bar: Unit = macro Bar.impl bar -trait Foo extends Macro { def impl = { import c.universe._; c.Expr[Unit](q"()") } } +class Foo(val c: Context) { def impl = { import c.universe._; c.Expr[Unit](q"()") } } def foo: Unit = macro Foo.impl foo """ |