Skip to content

Generalize optional chaining detection used by #require(). #625

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

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Aug 21, 2024

This PR generalizes the optional chaining detection used in the implementation of unwrapping #require() such that it works with more than just member access expressions.

Resolves #623.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci test Linux

1 similar comment
@grynspan
Copy link
Contributor Author

@swift-ci test Linux

@grynspan grynspan changed the base branch from main to main-next August 21, 2024 13:46
Base automatically changed from main-next to main August 22, 2024 13:39
This PR generalizes the optional chaining detection used in the implementation
of unwrapping `#require()` such that it works with more than just member access
expressions.

Resolves #623.
@grynspan grynspan force-pushed the jgrynspan/623-optional-chaining branch from c74dca6 to d8cd468 Compare August 26, 2024 18:28
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 133e302 into main Aug 27, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/623-optional-chaining branch August 27, 2024 00:11
@grynspan grynspan added this to the Swift 6.1 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#require broken when accessing optional property
2 participants