Generic enum Seemingly in Two States at the Same Time

I have the following generic Result enum that implements a protocol with an associated type. Sometimes (as in the screen shot), even though self is the Failure case, the implementation of the value method falls into the Success case (and promptly crashes).


Anyone have a good explanation for how that is even possible?


Images aren't shown on these forums. You'll have to describe what you see, copy some text, or link to an image on another site (which will put your post in moderation and it won't be visible until someone from Apple approves it).

Generic enum Seemingly in Two States at the Same Time
 
 
Q