Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macroFromTo should cope with type-parameter fields #51

Open
jducoeur opened this issue Oct 8, 2020 · 0 comments
Open

macroFromTo should cope with type-parameter fields #51

jducoeur opened this issue Oct 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jducoeur
Copy link

jducoeur commented Oct 8, 2020

There are lots of use cases here, but abstractly the goal is to be able to say this:

case class MyWrapper[T : FromTo](
  body: T
)

object WithKafkaHeaders {
  implicit def wrapperFromTo[T : FromTo]: FromTo[MyWrapper[T]] = macroFromTo
}

Currently this fails at compile time, with a diverging implicit expansion error. It isn't clear what the macro is trying to do right now, but it clearly isn't quite what I'd intuitively expect. Hopefully we can get this working right.

@jducoeur jducoeur added the enhancement New feature or request label Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant