-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
closuresFeature: closuresFeature: closurescompilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationfailed to produce diagnosticBug → internal error: Failed to produce diagnostic for expressionBug → internal error: Failed to produce diagnostic for expressionswift 6.3type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
Description
No response
Reproduction
struct Mootex<T> {
func withLock<Result>(_: (T) -> Result) -> Result {}
}
func never() -> Never {}
struct Test {
let _i = Mootex<Int>()
var i: Int {
_i.withLock { _ in
never()
}
}
}Expected behavior
No error.
Environment
Swift version 6.3-dev (09c828c)
Additional information
No response
Metadata
Metadata
Assignees
Labels
closuresFeature: closuresFeature: closurescompilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationfailed to produce diagnosticBug → internal error: Failed to produce diagnostic for expressionBug → internal error: Failed to produce diagnostic for expressionswift 6.3type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis