-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use dedicated macro for scala 3 enum type #983
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v0.8.x #983 +/- ##
=========================================
Coverage ? 95.18%
=========================================
Files ? 51
Lines ? 1827
Branches ? 153
=========================================
Hits ? 1739
Misses ? 88
Partials ? 0 ☔ View full report in Codecov by Sentry. |
7157399
to
8a84b29
Compare
@@ -49,7 +53,7 @@ trait EnumTypeDerivation { | |||
val ns = sealedTrait.typeName.owner | |||
val subs = sealedTrait.subtypes.map(_.typeclass) | |||
val values = subs.flatMap(_.values).sorted.toList | |||
val annotations = (sealedTrait.annotations ++ subs.flatMap(_.annotations)).toList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bug to me. The base type should not get annotation from sub types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clearly a desired behavior in the original commit but I am unsure why:
b5ac800#diff-a545d2c0ce087b812c645b66d7e3c15dde241f541434cb9bc0f6330d0570f281R34-R37
No description provided.