blob: 38b8e24444fe17141085d091bdbcc94bed5502e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
import scala.language.experimental.macros
import scala.reflect.macros.Context
// explain some macro types to me
object BadMac {
def printf(format: String, params: Any*): Unit = macro printf_impl
def printf_impl(c: Context)(format: c.Expr[String], params: c.Expr[String]*): c.Expr[Unit] = ???
}
|