The following compiles and crashes with DMD 2.063.
Should this be a compile time error?


class A
{
    int _var;

    void var(int i) @property
    {
        this.var = i;   // oops, crashes.
    }                   // should have been this._var

    int var() @property
    {
        return var;
    }
}

void main()
{
    auto a = new A();
    a.var = 3;
}

Reply via email to