blob: 2015508b8049b68528cd4ad408c4c448a9feb109 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.language.experimental.macros
import scala.reflect.macros.blackbox.Context
trait Bundle {
val c: Context = ???
def impl = ???
}
object Macros {
def foo = macro Bundle.impl
}
|