summaryrefslogblamecommitdiff
path: root/test/files/run/macro-bundle-repl.scala
blob: 4dfd450b698c5167e01c80c36fceebdb3091df74 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                         

                                                                                                                  
   
                                                                                   
                              

     
 
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
bar
trait Foo extends Macro { def impl = { import c.universe._; c.Expr[Unit](q"()") } }
def foo: Unit = macro Foo.impl
foo
  """
}