[Issue 16357] cast(T[])[x] casts x to T instead of [x] to T[]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 6 14:51:03 UTC 2023


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
@ntrel updated dlang/dlang.org pull request #3701 "[spec] Array literal can
implicitly convert to an expected type" fixing this issue:

- Show overflow in example

  Fix Issue 16357 - cast(T[])[x] casts x to T instead of [x] to T[].

https://github.com/dlang/dlang.org/pull/3701

--


More information about the Digitalmars-d-bugs mailing list