Skip to content

Add ConditionTraitTests to cover the Swift 6.0 compiler issue for custom trait + closure + macro #1008

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
Mar 11, 2025

Conversation

Kyle-Ye
Copy link
Contributor

@Kyle-Ye Kyle-Ye commented Mar 10, 2025

See #1006 (comment)

Motivation:

Add test case for avoid regression.

Modifications:

Add ConditionTraitTests test case to cover it

Result:

If will cause a compiler crash for Swift 6.0 compiler.

And it should work fine on the latest Swift 6.1 compiler.

Checklist:

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

@stmontgomery
Copy link
Contributor

@swift-ci please test

@stmontgomery stmontgomery added this to the Swift 6.2 milestone Mar 10, 2025
@stmontgomery stmontgomery added the enhancement New feature or request label Mar 10, 2025
@stmontgomery
Copy link
Contributor

@swift-ci please test Linux

@grynspan grynspan added workaround Workaround for an issue in another component (may need to revert later) traits Issues and PRs related to the trait subsystem or built-in traits labels Mar 10, 2025
@Kyle-Ye Kyle-Ye force-pushed the optimize/kyle/closure_test_case branch from 381426b to 0301161 Compare March 11, 2025 02:42
@Kyle-Ye Kyle-Ye force-pushed the optimize/kyle/closure_test_case branch from 0301161 to 7d33b87 Compare March 11, 2025 02:43
@stmontgomery
Copy link
Contributor

@swift-ci please test

@Kyle-Ye Kyle-Ye merged commit 2acac32 into swiftlang:main Mar 11, 2025
3 checks passed
@Kyle-Ye Kyle-Ye deleted the optimize/kyle/closure_test_case branch March 11, 2025 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request traits Issues and PRs related to the trait subsystem or built-in traits workaround Workaround for an issue in another component (may need to revert later)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants