2008-02-29 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: fix error when using type
parameter in generic type methods
svn path=/trunk/; revision=1071
2008-02-29 Jürg Billeter <j@bitron.ch>
+ * vala/valasemanticanalyzer.vala: fix error when using type
+ parameter in generic type methods
+
+2008-02-29 Jürg Billeter <j@bitron.ch>
+
* gobject/valaccodegenerator.vala,
gobject/valaccodegeneratormethod.vala: support methods throwing
exceptions and returning generic type parameter
actual_type = (DataType) instance_type.get_type_arguments ().get (param_index);
}
if (actual_type == null) {
- Report.error (node_reference.source_reference, "internal error: no actual argument found for type parameter %s".printf (generic_type.type_parameter.name));
- node_reference.error = true;
- return null;
+ // no actual type available
+ return generic_type;
}
actual_type = actual_type.copy ();
actual_type.transfers_ownership = actual_type.takes_ownership && generic_type.transfers_ownership;