blob: 0468d841bd172adb9357c45880332f6dbd3fafc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import scala.language.experimental.macros
import scala.reflect.macros.Macro
import scala.reflect.macros.Context
trait Bundle[T] extends Macro {
def impl = ???
}
object Macros {
def foo = macro Bundle.impl
def foo = macro Bundle[Int].impl
def foo = macro Bundle[Int, Nothing].impl
}
|