[Vala] Delegates in generic classes


the attached source file fails to compile with:

foo.vala:19.34-19.46: error: Argument 1: Cannot convert from
`myIntCallback' to `GenericClass.Callback'
        var gc = new GenericClass<int>( myIntCallback );

Apparantly, Vala does not recognize the equality of the generic
and the concrete type. Is there any way to work around that?



Attachment: foo.vala
Description: Text Data

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]