{{ message }}
Repository navigation
Allow let! and use! binding with type annotation without parentheses. - #18508
Merged
Merged
Conversation
Contributor
edgarfgp
commented
Apr 30, 2025
edgarfgp
commented
Apr 30, 2025
Contributor
Author
|
It might be interesting in a follow up PR to add error recovery for cases where we have a let! x:
use! stream:
let x:
use x:Where we can use |
baronfel
approved these changes
May 1, 2025
baronfel
left a comment
Member
There was a problem hiding this comment.
Love the depth of test coverage here.
T-Gro
requested changes
May 14, 2025
T-Gro
left a comment
Member
There was a problem hiding this comment.
This is really a nice addition @edgarfgp 👍 .
I think this is a change where we would be better with having a languageFeature guard with recovery.
Reason is, people might be having mismatched SDKs locally vs CI.
This change would allow code to pass locally, but then surprisingly fail parsing when ran on CI with a different SDK version.
LanguageVersion will cover for that scenario.
Contributor
Author
T-Gro
approved these changes
May 16, 2025
2 tasks done
This was referenced Jun 16, 2025
5 of 6 tasks
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Allow
let!anduse!binding with type annotation without parentheses.Fixes #10697
BEFORE
AFTER
Once #18487 is merged
Checklist