]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Do not write constructors of abstract classes
authorLuca Bruno <lucabru@src.gnome.org>
Tue, 5 Jul 2011 20:02:21 +0000 (22:02 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Tue, 5 Jul 2011 20:02:40 +0000 (22:02 +0200)
codegen/valagirwriter.vala

index a29b6548c03bfcf3a4437d0b798e915c3a4edf0f..3b5087f2807043a0e9c427e8357a873f96de493f 100644 (file)
@@ -893,6 +893,10 @@ public class Vala.GIRWriter : CodeVisitor {
                        return;
                }
 
+               if (m.parent_symbol is Class && ((Class) m.parent_symbol).is_abstract) {
+                       return;
+               }
+
                write_indent ();
 
                bool is_struct = m.parent_symbol is Struct;