summaryrefslogtreecommitdiff
path: root/test/files/run/macro-bundle-repl.scala
blob: 8084418454bf78b53d2576835348b03b97ebe96c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import scala.tools.partest.ReplTest

object Test extends ReplTest {
  def code = """
import scala.language.experimental.macros
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
class Foo(val c: Context) { def impl = { import c.universe._; c.Expr[Unit](q"()") } }
def foo: Unit = macro Foo.impl
foo
  """
}