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

Fix stability check for inline parameters #15511

Merged

Conversation

nicolasstucki
Copy link
Contributor

Inline parameters are not stable. Two references to the same parameter
may not be idempotent.

@nicolasstucki nicolasstucki force-pushed the fix-stability-check-for-inline-parameters branch from 4e82831 to 9eecbd4 Compare June 23, 2022 16:16
@nicolasstucki nicolasstucki force-pushed the fix-stability-check-for-inline-parameters branch 2 times, most recently from c8b2c1e to ab279ab Compare July 4, 2022 13:26
@nicolasstucki nicolasstucki force-pushed the fix-stability-check-for-inline-parameters branch 4 times, most recently from b698278 to 5b131fa Compare July 8, 2022 14:29
nicolasstucki added a commit to dotty-staging/protoquill that referenced this pull request Jul 8, 2022
@nicolasstucki nicolasstucki force-pushed the fix-stability-check-for-inline-parameters branch from 5b131fa to 2081372 Compare July 8, 2022 14:51
@nicolasstucki nicolasstucki force-pushed the fix-stability-check-for-inline-parameters branch from 2081372 to 21550f0 Compare November 16, 2022 08:00
@nicolasstucki nicolasstucki self-assigned this Nov 28, 2022
nicolasstucki added a commit to dotty-staging/protoquill that referenced this pull request Dec 13, 2022
@nicolasstucki nicolasstucki force-pushed the fix-stability-check-for-inline-parameters branch 2 times, most recently from 9b633f7 to 076b090 Compare December 13, 2022 12:14
Inline parameters are not stable. Two references to the same parameter
may not be idempotent.
@nicolasstucki nicolasstucki force-pushed the fix-stability-check-for-inline-parameters branch from 076b090 to 77a8902 Compare December 13, 2022 12:40
@nicolasstucki nicolasstucki marked this pull request as ready for review December 13, 2022 14:50
@nicolasstucki nicolasstucki added this to the 3.3.0-RC1 milestone Dec 13, 2022
@nicolasstucki nicolasstucki removed their assignment Dec 13, 2022
@smarter smarter merged commit 5929a50 into scala:main Dec 13, 2022
@smarter smarter deleted the fix-stability-check-for-inline-parameters branch December 13, 2022 17:05
@dwijnand dwijnand added the release-notes Should be mentioned in the release notes label Dec 19, 2022
@Kordyjan Kordyjan modified the milestones: 3.3.0-RC1, 3.3.0 Aug 1, 2023
sjrd added a commit to sjrd/perspective that referenced this pull request Aug 9, 2023
`inline` parameters can be evaluated several times, and therefore
are not stable paths, so they cannot be used in path-dependent
types.

Checking this was fixed in Scala 3.3.0.
See scala/scala3#15511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes Should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants