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

Support ?.bind, error on ?.new and ?.match #11799

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Conversation

Simn
Copy link
Member

@Simn Simn commented Oct 23, 2024

Currently the compiler just silently ignores the safe navigation operator in these cases. Supporting ?.bind seems sensible, while ?.new seems pointless. And I didn't want to think about ?.match so I disallowed that one as well.

Closes #11571

@Simn Simn merged commit 46481f6 into development Oct 24, 2024
99 checks passed
@Simn Simn deleted the safe_nav_leftovers branch October 24, 2024 05:28
@skial skial mentioned this pull request Oct 31, 2024
1 task
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.

Null conditional bind does nothing
1 participant