[Issue 22156] Can't use all-types slice of not-all-types AliasSeq as type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 28 15:37:26 UTC 2023


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
Why should this code compile? To be able to slice the type, the compiler
requires a valid type? Since AliasSeq!(int, 0) is not a valid type, you cannot
slice it. I don't think that this bug report is valid.

Tentatively closing as invalid. But please feel free to reopen upon further
clarifications.

As a workaround, you can first extract the types from the AliasSeq and than
create the needed tuple type.

--


More information about the Digitalmars-d-bugs mailing list