https://issues.dlang.org/show_bug.cgi?id=13130

--- Comment #4 from Rainer Schuetze <[email protected]> ---
I also think this is a misfeature. Some experiments show that is very
inconsistent: the following code compiles, commented lines throw an error.

class Foo
{
    this(this that, super base)
    {
        // this other = that;
        // static shared(super) s;
    }
    void member(this that)
    {
    }
    super base;
    // this next;
    shared(this) that;
    static shared(super) sup;
}

Similar stuff works for structs an "this", "super" is an undefined identifier.

--

Reply via email to