-
Notifications
You must be signed in to change notification settings - Fork 10.5k
False positive warning about closure isolation but only when argument label is omitted #75522
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
Comments
Related: #75521 |
Workaround swiftlang/swift#75522
Workaround swiftlang/swift#75522
Workaround swiftlang/swift#75522
@groue so this doesn't reproduce on main anymore. It was fixed in tags/swift-DEVELOPMENT-SNAPSHOT-2024-08-28-a..tags/swift-DEVELOPMENT-SNAPSHOT-2024-08-29-a. So one of these commits: 406b8bd Merge pull request #76133 from slavapestov/sync-local-func-isolation |
This is fixed in the 6.1 release. |
Description
The compiler changes its diagnostic depending on whether a closure argument is declared with or without argument label.
Reproduction
This is very confusing.
Expected behavior
No warning in both cases.
Environment
% swiftc -version
swift-driver version: 1.112.3 Apple Swift version 6.0 (swiftlang-6.0.0.6.8 clang-1600.0.23.1)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: