-
Notifications
You must be signed in to change notification settings - Fork 115
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
Feat/support all annotations in scala 3 #1471
base: series/4.x
Are you sure you want to change the base?
Conversation
cc205a2
to
dc642a7
Compare
dc642a7
to
d2cdce5
Compare
@kyri-petrou @afsalthaj How important is mima atm? I changed Macros to AnnotationMacros and made it private to the magnolia package. I don't think it should be public api. |
originalKey.fold(desc)(k => desc.nested(modifyKey(k))) | ||
// case keys => keys.view.map(k => desc.nested(modifyKey(k))).reduce(_ orElse _) // Looks like the Scala 3 implementation modifies alternative names while the Scala 2 implementations treats them as is. | ||
case keys => keys.view.map(k => desc.nested(k)).reduce(_ orElse _) |
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.
please review this carefully, because I think L341 should be enabled and L342 disabled. This changes the existing behaviour only to match the Scala 2 behaviour.
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.
L340 I already adjusted.
This PR add support for annotations in Scala 3 on all platforms. The added tests are used for testing all platforms and scala versions to ensure unambiguous behaviour.
This PR introduces the
suffix
annotation as a replacement forpostfix
(to deprecate). Semantics ofpostfix
to not properly reflect the feature.