summaryrefslogtreecommitdiff
path: root/test/files/run/macro-bundle-repl.check
blob: c11c48dc55b2a954a6ebccba26db9f0040c728b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scala.language.experimental.macros
import scala.language.experimental.macros

scala> import scala.reflect.macros.Macro
import scala.reflect.macros.Macro

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

scala> foo

scala>