Bug 12718 – Allow use invariant without parentheses or improve error message

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-08T18:05:00Z
Last change time
2014-05-09T21:58:56Z
Assigned to
nobody
Creator
temtaime

Comments

Comment #0 by temtaime — 2014-05-08T18:05:20Z
class C { invariant {} } Error: use 'immutable' instead of 'invariant' I think invariants should be allowed without parentheses or error message should say about it.
Comment #1 by k.hara.pg — 2014-05-09T21:58:56Z
*** This issue has been marked as a duplicate of issue 10326 ***