Skip to content
New issue

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

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

Already on GitHub? # to your account

Tighten fieldsOf and isCaseAccessorLike #972

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

joroKr21
Copy link
Collaborator

@joroKr21 joroKr21 commented Mar 6, 2020

  • For case classes return case accessor fields (not methods).
    This skips synthetic x$access$1 methods which appear in the wrong order.

  • For non-case classes restrict to parameter accessors or lazy vals.
    This way we can support both by-name parameters and vals in the body.

Fixes #968
Fixes #934
Fixes #768

  * For case classes return case accessor fields (not methods).
    This skips synthetic `x$access$1` methods which appear in the wrong order.

  * For non-case classes restrict to parameter accessors or lazy vals.
    This way we can support both by-name parameters and vals in the body.
@joroKr21 joroKr21 requested a review from milessabin March 6, 2020 11:32
@joroKr21 joroKr21 added this to the shapeless-2.4.0 milestone Mar 6, 2020
@joroKr21 joroKr21 self-assigned this Mar 6, 2020
@joroKr21 joroKr21 requested review from travisbrown and removed request for travisbrown March 6, 2020 12:26
Copy link
Owner

@milessabin milessabin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@milessabin milessabin merged commit aeb8e5b into milessabin:master Mar 11, 2020
@joroKr21 joroKr21 deleted the fields-of branch March 11, 2020 11:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
2 participants