May 09, 2014
https://issues.dlang.org/show_bug.cgi?id=12724

          Issue ID: 12724
           Summary: Error: return statements cannot be in contracts
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody@puremagic.com
          Reporter: monarchdodra@gmail.com

Why can't a return statement be present in a contract? A contract is basically a function returning void. And those can have return statements.

Seems like a pointless restriction to me...

--