Comment #0 by andrej.mitrovich — 2020-10-21T06:51:35Z
-----
enum OP : ubyte
{
PUSH = 2
}
void take (ubyte[]) { }
void main ()
{
ubyte[2] bytes;
take([OP.PUSH, bytes[0]]); // ok
take([bytes[0]] ~ bytes); // ok
take([OP.PUSH, bytes[0]] ~ bytes); // error. promotion to int[]?!
}
-----
Why is it promoting `OP.PUSH` into an integer in the last call? It makes absolutely no sense at all.
Comment #1 by robert.schadek — 2024-12-13T19:12:17Z