-
Notifications
You must be signed in to change notification settings - Fork 112
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
Change scope of ClassTagWrapper in NewType to public? #1253
Comments
tim-2022
pushed a commit
to tim-2022/zio-prelude
that referenced
this issue
Apr 12, 2024
guizmaii
pushed a commit
that referenced
this issue
Apr 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When attempting to use Magnolia to generate macros which rely upon "ClassTag" (see below for a simplified example), Magnolia complains that the ClassTagWrapper helper isn't accessible:
I've tried using a local copy of ClassTagWrapper, but that doesn't seem to fix the problem, either, so I can't see another alternative than to give up on code reuse (I could manually define tags() on every Subtype we have, but there are many) or open up the scope of ClassTagWrapper. (Otherwise, let me know if you think I'm overlooking something!)
Example (also found at Scastie at https://scastie.scala-lang.org/OTm2XTJNTeafBu4I58HCtA).
Thanks very much!
Tim
The text was updated successfully, but these errors were encountered: