blob: 2aa63216f59e734d29c4dc014a945e40bfe63297 (
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
}
|