swiftlang/swift
GitHub で見るNo fix-it for escaping closure captures 'inout' parameter
Open
#87,830 opened on 2026年3月12日
SILcapture listsclosurescompilerdiagnostics qualityexpressionsfix-itsgood first issueinoutswift 6.3value capturing
Repository metrics
- Stars
- (69,989 stars)
- PR merge metrics
- (平均マージ 8d 17h) (30d で 510 merged PRs)
説明
Description
No response
Reproduction
func bar(_: @escaping () -> Void) {}
func foo(_ i: inout Int) {
bar {
_ = i
}
}
Expected behavior
An additional note asking if the user wants to capture a copy, with a fix-it to capture the parameter explicitly.
Environment
Swift version 6.3-dev (fefcb257b5b5d32)
Additional information
No response