Compiled with a recent master DMD version, flags -preview=dip1000 -run
-----------------------------
@safe void main()
{ new noreturn[](0);
}
-----------------------------
This program crashes at runtime.
It should either compile and run succesfully, or fail compilation with "statement has no effect" error. Reason for that is because no bottom values are instantiated - the program is instantiating only an empty array.
Comment #1 by robert.schadek — 2024-12-13T19:24:42Z