[SR-13432] No warning diagnostic generated for closure with Never argument #55873
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
SILGen
Area → compiler: The SIL generation stage
Additional Detail from JIRA
md5: 5b5c27c42f2ac243167ed3f88bea66e5
Issue Description:
When providing a single expression closure with an implicit return and takes a `Never` parameter, no warning is generated.
Examples:
This is very problematic when chaining results in Combine because the author is not notified that the publisher will not react accordingly.
For example, the following combine code issues no warnings and never prints a value!
The text was updated successfully, but these errors were encountered: