Hello, here is example code, which doesn't work:

    Variant[] vtypes = [ Variant("hello"), Variant("bye") ];
    string[] filetypes = map!(to!string)(vtypes);

Gives me error:

Error: cannot implicitly convert expression (map(vtypes)) of type MapResult!(to, VariantN!(24u)[]) to string[]
....

And alternative version:

    Variant[] vtypes = [ Variant("hello"), Variant("bye") ];
    string[] ftypes = map!(t => t.get!(string))(vtypes);

Error: cannot implicitly convert expression (map(vtypes)) of type MapResult!(__lambda2, VariantN!(24u)[]) to string[]
....

What is wrong here and how to fix it ?

Reply via email to