Skip to content

[Sema] Diagnose regex literals if Regex<Output> is unavailable #42573

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
Apr 22, 2022

Conversation

hamishknight
Copy link
Contributor

Because we don't form a type-checked call to the Regex initializer in the AST, we need to explicitly handle the availability checking for Regex<Output> and the initializer we're implicitly calling.

rdar://92156542

@hamishknight hamishknight requested review from rxwei and tshortli April 22, 2022 11:40
Because we don't form a type-checked call to the
Regex initializer in the AST, we need to explicitly
handle the availability checking for `Regex<Output>`
and the initializer we're implicitly calling.

rdar://92156542
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit a118a5d into swiftlang:main Apr 22, 2022
@hamishknight hamishknight deleted the regex-availability branch April 22, 2022 17:38
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.

4 participants