[SR-12277] Swift compiler ignores {{return}} statement #54705
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: 7120d42547df677b3aefa8e54450a1ab
Issue Description:
In this code
the Swift compiler actually complains with
so if I interpret that correctly, despite the fact that
doIt
returnsEventLoopFuture<Void>
it decided to ignore that value and make the closure returnVoid
!?repro package attached.
Repro that doesn't depend on NIO
The text was updated successfully, but these errors were encountered: