[Issue 16222] empty array literal should have type noreturn[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 17 16:18:25 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=16222
--- Comment #3 from Nick Treleaven <nick at geany.org> ---
> we need a typeof([]) that implicitly converts to any T[] (unlike void[]).
That would be `noreturn[]`:
https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1034.md#the-type-of-the-empty-array-literal
--
More information about the Digitalmars-d-bugs
mailing list