vala r1279 - in trunk: . vala



Author: juergbi
Date: Sat Apr 19 22:43:07 2008
New Revision: 1279
URL: http://svn.gnome.org/viewvc/vala?rev=1279&view=rev

Log:
2008-04-20  Juerg Billeter  <j bitron ch>

	* vala/valasemanticanalyzer.vala: support partial interface
	  reimplementation, fixes bug 504079


Modified:
   trunk/ChangeLog
   trunk/vala/valasemanticanalyzer.vala

Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala	(original)
+++ trunk/vala/valasemanticanalyzer.vala	Sat Apr 19 22:43:07 2008
@@ -180,6 +180,11 @@
 				if (base_type.data_type is Interface) {
 					Interface iface = (Interface) base_type.data_type;
 
+					if (cl.base_class != null && cl.base_class.is_subtype_of (iface)) {
+						// reimplementation of interface, class is not required to reimplement all methods
+						break;
+					}
+
 					/* We do not need to do expensive equality checking here since this is done
 					 * already. We only need to guarantee the symbols are present.
 					 */



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