Comment #4 by bearophile_hugs — 2014-09-23T20:06:31Z
Now the error messages become:
test.d(8,13): Error: cannot implicitly convert expression (a.opSlice(__dollar - 4u, __dollar)) of type ubyte[] to ubyte[4]
test.d(12,13): Error: cannot implicitly convert expression (a.opSlice(21u, 25u)) of type ubyte[] to ubyte[4]
Comment #5 by b2.temp — 2023-02-11T05:16:34Z
This is not a compiler bug. The problem is that `std.typecons.TypeDef` uses an inner `std.typecons.Proxy` but as documented `Proxy` blocks implicit conversions.
Now the big question is if it's an "invalid issue" (and maybe that "TypeDef" DDOC is incomplete then) or if "TypeDef" implementation is not correct.
Comment #6 by robert.schadek — 2024-12-01T16:19:57Z