I get a compiler error under v.0.138 when I try to cast a template object to
its parent interface when passing it to the delegate
argument of opApply. The workaround forces me to store the cast to a
temporary variable, then pass the temporary to the opApply
delegate.
------------

<snip>

------------
I suspect this test case may be generalized further, but I'm not sure how to
go about simplifying it. Any help would be
appreciated.
Regards,
Garett

Here's a reduced version:
void foo(inout int i) {}
void main()
{
long l;
foo(l); //6
}
With gdc 0.16, I get: "foo.d:6: cast(int)(l) is not an lvalue". There've been
times when allowing this has beed asked, but in the end, I think it's somewhat
understandable behavior.
--
Carlos Santander Bernal