vala r1470 - in trunk: . vala



Author: juergbi
Date: Wed May 28 20:07:46 2008
New Revision: 1470
URL: http://svn.gnome.org/viewvc/vala?rev=1470&view=rev

Log:
2008-05-28  Juerg Billeter  <j bitron ch>

	* vala/valaparser.vala:

	Don't generate default creation method for abstract classes,
	patch by Marc-Andrà Lureau, fixes bug 531190


Modified:
   trunk/ChangeLog
   trunk/vala/valaparser.vala

Modified: trunk/vala/valaparser.vala
==============================================================================
--- trunk/vala/valaparser.vala	(original)
+++ trunk/vala/valaparser.vala	Wed May 28 20:07:46 2008
@@ -1939,7 +1939,7 @@
 
 		// ensure there is always a default construction method
 		if (!scanner.source_file.external_package
-		    && !cl.is_static
+		    && !cl.is_static && !cl.is_abstract
 		    && cl.default_construction_method == null) {
 			var m = new CreationMethod (cl.name, null, cl.source_reference);
 			m.binding = MemberBinding.STATIC;



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