[SR-12276] bad diagnostics, suggests to make a function that returns something return Void instead #54704
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Additional Detail from JIRA
md5: e2c939f054f2050f8284756ea08b3794
Issue Description:
I have the following code (full SwiftPM package attached):
what Swift suggests to do is
which really doesn't help much.
Repro that doesn't depend on NIO:
The text was updated successfully, but these errors were encountered: