blob: 50783c8cbacbb323f7d6e8d3c5cb106d65587955 (
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.Macro
trait Bar extends Macro { def impl = c.literalUnit };def bar = macro Bar.impl
bar
trait Foo extends Macro { def impl = c.literalUnit }
def foo = macro Foo.impl
foo
"""
}
|