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

Andrei Alexandrescu <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Andrei Alexandrescu <[email protected]> ---
There is a workaround to this:

struct R {
    int[] arr;

    alias get this;

    R get(this This)()
    {
        return R.init;
    }

    R get(this This)() const
    {
        return R.init;
    }
}

unittest
{
    const(R) b = const(R).init;
}

--

Reply via email to