Please help: is it compiler bug or I'm doing something wrong?

This code:

module properties;

struct PropertyList {
<-->invariant() {
<--><-->assert(1);
<-->}

<-->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.

Reply via email to