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

Maxim Fomin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |[email protected]

--- Comment #1 from Maxim Fomin <[email protected]> ---
Reduced

import core.atomic;

struct Mutexed (T)
{
    auto acquire ()
    {
        return Lock (this);
    }
    alias acquire this;

    struct Lock
    {
        private Mutexed* source;
    }
}
void main ()
{
    Mutexed!(int[]) x;
}

Alias does not capture local context, it is not clear what was intended from
'alias acquire this;' but it looks like accepts-invalid.

--

Reply via email to