Summary: Compiler error on struct with invariant and postblitz
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Alex Khmara <> 2011-01-01 13:12:38 PST 
This code:

module properties;

struct PropertyList {
    invariant() {

    this(this) {
        _props = [];

    string[] _props;

gives compiler error:

Error: __result = this is not mutable
Error: __result = this is not an lvalue

Without invariant all works good.

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

Reply via email to