Skip to content

Conversation

@izhangzhihao
Copy link

No description provided.

case class Caller[A](value: A)
object Caller {
implicit def generate: Caller[_] = macro impl
def impl(c: whitebox.Context): c.Tree = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like it could work as blackbox

def impl(c: Compat.Context): c.Expr[Pkg] = Impls.enclosing[Pkg](c)(_.isPackage)
}

case class Caller[A](value: A)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not keen on this being parametric, it would be best if it was a String to avoid leaking runtime information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants