You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
objectClassTagWrapper in objectNewtype cannot be accessed as a member of objectzio.prelude.Newtype from objectPart
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!)
zio#1253
Solves:
zio#1253
(Error message: "object ClassTagWrapper in object Newtype cannot be
accessed as a member of object zio.prelude.Newtype" when attempting
to use a ClassTag on a Newtype or Subtype.)
#1253
Solves:
#1253
(Error message: "object ClassTagWrapper in object Newtype cannot be
accessed as a member of object zio.prelude.Newtype" when attempting
to use a ClassTag on a Newtype or Subtype.)
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: