[Issue 12724] Error: return statements cannot be in contracts

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 12 12:18:22 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12724

--- Comment #10 from monarchdodra at gmail.com ---
(In reply to bearophile_hugs from comment #9)
> (In reply to monarchdodra from comment #8)
> 
> > It means you've tested what needs to be tested, and the input given need to
> > proceed with the rest of the code.
> 
> So the return ends just the contract. I misunderstood this, sorry.

I understand why you are against this now. Seems like a misunderstanding on
what the return would actually do.

--


More information about the Digitalmars-d-bugs mailing list