2008-06-01 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala:
Report internal error for missing type argument
svn path=/trunk/; revision=1525
+2008-06-01 Jürg Billeter <j@bitron.ch>
+
+ * vala/valasemanticanalyzer.vala:
+
+ Report internal error for missing type argument
+
2008-05-31 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala:
node_reference.error = true;
return null;
}
+ if (instance_type.get_type_arguments ().size <= param_index) {
+ Report.error (node_reference.source_reference, "internal error: missing type argument for type parameter `%s' in `%s'".printf (type_arg.type_parameter.get_full_name (), instance_type.to_string ()));
+ node_reference.error = true;
+ return null;
+ }
type_arg = instance_type.get_type_arguments ().get (param_index);
}
instance_base_type.add_type_argument (type_arg);