[SR-14134] Throw analysis goes awry on rethrow vs @autoclosure #56514
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Environment
Tested on 5.4 branch
Additional Detail from JIRA
md5: b312c8c55ad5176e465579b9cdf806a1
Issue Description:
In the code below, passing a non-throwing expression to a rethrowing function makes the compiler emit a bogus diagnostic:
To work around this diagnostic, I need to insert a dummy function:
The text was updated successfully, but these errors were encountered: