[SR-15151] @discardableResult not propagated through return value / continuation #57477
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
failed to produce diagnostic
Bug → internal error: Failed to produce diagnostic for expression
type checker
Area → compiler: Semantic analysis
Environment
Swift 5.5
Additional Detail from JIRA
md5: e80ffb61f8bb865977bd306915574028
Issue Description:
Not sure if it's practical to fix, but the following example produces an unused return value warning.
Worse, when result builders are involved we get an error:
The text was updated successfully, but these errors were encountered: