No polymorphism?

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 24 11:15:20 PDT 2017


On 7/24/17 1:29 PM, Dgame wrote:

> Why isn't the compiler able to deduce S[] => I[]? Or is it just me?
> I've tried dmd 2.075

I know you got the explanation already, but just in case you actually 
need to call something like test1 but only have an S[]:

test1(ss.map!((I i) => i).array)

-Steve


More information about the Digitalmars-d-learn mailing list