Skip to content

Add missing flags from case bindings in TASTy #11595

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

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

nicolasstucki
Copy link
Contributor

Fixes #11594

@nicolasstucki nicolasstucki self-assigned this Mar 4, 2021
pickleName(name)
pickleType(sym.info)
pickleTree(body)
pickleFlags(sym.flags &~ Case, sym.isTerm)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to allow other modifiers like annotations? Can these be on the binding or are they always on the type?

Copy link
Contributor

Choose a reason for hiding this comment

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

They should be on the type. Are there other flags on bound symbols except Implicit or Given?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not now. But I could imagine there could be a Synthetic flag added to some of those.

It may also make sense to have Erased and Inline in the future. Such as in #11598.

@nicolasstucki nicolasstucki requested a review from odersky March 4, 2021 12:13
@nicolasstucki nicolasstucki marked this pull request as ready for review March 4, 2021 12:13
@odersky odersky assigned nicolasstucki and unassigned odersky Mar 4, 2021
@nicolasstucki nicolasstucki merged commit 5fa55b1 into scala:master Mar 4, 2021
@nicolasstucki nicolasstucki deleted the fix-#11594 branch March 4, 2021 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing given flag in given case bindings in TASTy
2 participants