]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
CodeWriter: add 'new' to methods where appropriate
authorRyan Lortie <desrt@desrt.ca>
Sat, 11 Sep 2010 16:16:37 +0000 (12:16 -0400)
committerJürg Billeter <j@bitron.ch>
Wed, 15 Sep 2010 19:23:35 +0000 (21:23 +0200)
vala/valacodewriter.vala

index a1cda9724cff1d6103fe9b5b15076c27751cbbfc..f84409b577866bfcfc45100d456f840093b63276 100644 (file)
@@ -1067,6 +1067,10 @@ public class Vala.CodeWriter : CodeVisitor {
                                write_string ("override ");
                        }
 
+                       if (m.hides) {
+                               write_string ("new ");
+                       }
+
                        if (m.coroutine) {
                                write_string ("async ");
                        }