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: [email protected]
Reporter: [email protected]
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...
--
