Summary: Remove "invariant" as alias for "immutable"
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-06-15 13:37:33 PDT ---
In DMD 2.053 this code compiles with no errors, because "invariant" is an alias
for "immutable" still:

void main() {
    invariant x = 10;

But I suggest to remove this alias soon because it causes me some troubles
regarding Class/struct/enum invariants. 

DMD v2.053 compiles this with no errors:

struct Foo {
    invariant {}
struct Bar {
class CFoo {
    invariant {}
class CBar {
void main() {}

See bug 4325 for more info.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to