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

ajiesk...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ajiesk...@gmail.com
          Component|phobos                      |dmd

--- Comment #1 from ajiesk...@gmail.com ---
This is indeed a regression, but a compiler one, not a standard library one.
Test case for the ultimate cause:

```d
class C
{
    auto internal() const
    {
        return 5;
    }
    alias internal this;
};

void main() pure
{
    const c = new C;
    auto r = cast(C)c;
}
```

This should compile (I think?), but does not (since 2.084). Using `cast()`
instead of `cast(C)` still works.

--

Reply via email to