On Wed, 16 Mar 2011 17:42:09 +0000, Nick Treleaven wrote: > auto f = cast(BitArray)foo; > > shared.d(21): Error: function std.bitmanip.BitArray.opCast () is not > callable using argument types () > shared.d(21): Error: cannot implicitly convert expression (foo.opCast()) > of type void[] to BitArray > > Without shared, the cast is fine. It seems the problem is casting a > shared struct instance that defines opCast (at least like > BitArray.opCast, returning void[]).
This seems like a compiler bug, so filed: http://d.puremagic.com/issues/show_bug.cgi?id=5747
