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





                                                

                                                 
 
                                                                                                                         




                            
                                                                                          

                 
                                     




                            
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.blackbox.Macro
import scala.reflect.macros.blackbox.Macro

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

scala> foo

scala>