Skip to content
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

Disallow erased inline definitions #14250

Merged
merged 1 commit into from Jan 12, 2022

Conversation

nicolasstucki
Copy link
Contributor

The issue with the combination is that the erased semantics get lost as the code is inlined and the reference is removed. This implies that when we check for references to erased definitions we will not find it (exaclty as with inline alone).

@nicolasstucki nicolasstucki marked this pull request as ready for review January 11, 2022 17:16
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

The issue with the combination is that the erased semantics get lost as the code is inlined and the reference is removed. This implies that when we check for references to erased definitions we will not find it (exaclty as with inline alone).

Can you add that as a comment above the check for reference?

@smarter smarter assigned nicolasstucki and unassigned smarter Jan 11, 2022
The issue with the combination is that the `erased` semantics get lost as the code is inlined and the reference is removed. This implies that when we check for references to erased definitions we will not find it (exaclty as with inline alone).
@nicolasstucki nicolasstucki merged commit 47cc6f6 into scala:master Jan 12, 2022
@nicolasstucki nicolasstucki deleted the disallow-erased-inline branch January 12, 2022 10:10
@Kordyjan Kordyjan added this to the 3.1.2 milestone Aug 2, 2023
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.

None yet

3 participants