-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CSSimplify] Narrow down tuple wrapping for pack expansion matching #82467
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
Conversation
Follow-up for swiftlang#82326. The optional injection is only viable is the wrapped type is not yet resolved, otherwise it's safe to wrap the optional.
@swift-ci please test |
@swift-ci please build toolchain macOS |
@swift-ci please clean test Linux platform |
@swift-ci please test Linux platform |
@swift-ci please smoke test Linux platform |
guard let _ = try? test1(1, 2, v) else { return } // Ok | ||
|
||
guard let _ = try? test2(1, 2, 3) else { return } // Ok | ||
guard let _ = try? test2(1, 2, v) else { return } // Ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presumably this means that this also fails if v
is Any
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is an existing problem since we cannot decide what to do in this case early on.
swiftlang/swift-package-manager#8872 |
swiftlang/swift-package-manager#8874 |
Follow-up for #82326.
The optional injection is only viable is the wrapped type is not yet resolved, otherwise it's safe to wrap the optional.
Resolves: rdar://154221449