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 #20271: Bring for comprehension spec up to date. #21702

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Oct 4, 2024

Since Scala 3.4, a withFilter is generated if and only if the generator has the case modifier.

If it does not, the pattern must be irrefutable.


Rendered version of the changed section:
image

@sjrd sjrd requested a review from odersky October 4, 2024 15:33
@sjrd sjrd linked an issue Oct 4, 2024 that may be closed by this pull request
@michelou
Copy link
Contributor

michelou commented Oct 5, 2024

@sjrd Read "produced" instead of "produces" in sentence "[...] tests whether elements produces by ´e´ match [...]".

Since Scala 3.4, a `withFilter` is generated if and only if the
generator has the `case` modifier.

If it does not, the pattern must be irrefutable.
@sjrd sjrd force-pushed the update-for-comprehension-spec branch from 6f610cf to 127bb7b Compare October 5, 2024 10:04
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.

Language Spec: add more details about changes in for comprehension
3 participants