Commit 8cbed254 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

accept interfaces with base types

2007-02-27  Jürg Billeter  <j@bitron.ch>

	* vala/parser.y: accept interfaces with base types

svn path=/trunk/; revision=202
parent c2e6ae95
2007-02-27 Jürg Billeter <j@bitron.ch>
* vala/parser.y: accept interfaces with base types
2007-02-26 Jürg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala: fix error handling with unknown
......
......@@ -2632,7 +2632,7 @@ struct_member_declaration
;
interface_declaration
: comment opt_attributes opt_access_modifier INTERFACE IDENTIFIER opt_name_specifier opt_type_parameter_list
: comment opt_attributes opt_access_modifier INTERFACE IDENTIFIER opt_name_specifier opt_type_parameter_list opt_class_base
{
char *name = $5;
......@@ -2666,6 +2666,14 @@ interface_declaration
}
g_list_free ($7);
}
if ($8 != NULL) {
GList *l;
for (l = $8; l != NULL; l = l->next) {
vala_interface_add_base_type (current_interface, l->data);
g_object_unref (l->data);
}
g_list_free ($8);
}
}
interface_body
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment