-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make SIP-62 better-fors
a stable feature
#23630
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
Conversation
@@ -43,7 +43,7 @@ enum SourceVersion: | |||
def enablesClauseInterleaving = isAtLeast(`3.6`) | |||
def enablesNewGivens = isAtLeast(`3.6`) | |||
def enablesNamedTuples = isAtLeast(`3.7`) | |||
def enablesBetterFors(using Context) = isAtLeast(`3.7`) && isPreviewEnabled | |||
def enablesBetterFors = isAtLeast(`3.8`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder should we also enable it under -source:3.7
, -preview
- it makes sense to me as well
def enablesBetterFors = isAtLeast(`3.8`) | |
def enablesBetterFors(using Context) = isAtLeast(`3.8`) || ( isAtLeast(`3.7`) && isPreviewEnabled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me, too
5e7cc92
to
34e2162
Compare
@WojciechMazur I think that you may have forgotten to accept your change from #23630 (comment) |
Addendum to #23630 with missing adjustment for older source verisons
No description provided.