You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gwynne opened this issue
Sep 16, 2021
· 5 comments
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
theindigamer (JIRA User) For what it's worth, I wasn't able to find a repro case any smaller than the actual code where I ran into the issue (a huge Vapor-based service with 1500 source files) - far as I could tell it had something to do with this construct:
func blah(_ req:Request)->EventLoopFuture<...>{returndoStuffReturningOptional().flatMap{(obj1:ModelA?)->EventLoopFuture<(ModelA?,ModelB?)>in
if obj !=nil{return req.eventLoop.makeSucceededFuture((nil,nil))// <-- this (nil, nil) tuple is the proximate culprit}returndoSomeStuffReturningAnotherObject().flatMap{ obj2 inreturndoSomeMoreStuff().map{(obj1, obj2)}}}}
I couldn't figure out a repro despite having it narrowed down this far, but fortunately Erik figured out the problem (whatever it is! 😃) from the details I gave offline.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Environment
Additional Detail from JIRA
md5: ce5a1a391a7f060cb7e032d966aaa304
Issue Description:
Partial redacted compiler output:
The text was updated successfully, but these errors were encountered: