]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Detect unsupported generic type arguments in local variable declarations
authorJürg Billeter <j@bitron.ch>
Sun, 14 Dec 2008 22:15:47 +0000 (22:15 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 14 Dec 2008 22:15:47 +0000 (22:15 +0000)
2008-12-14  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodebasemodule.vala:

Detect unsupported generic type arguments in local variable
declarations

svn path=/trunk/; revision=2148

ChangeLog
gobject/valaccodebasemodule.vala

index 43071c20862a1c9475f889374c7b667a48eb2994..0dba23321476655d959450ab3c788f461464434e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-12-14  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valaccodebasemodule.vala:
+
+       Detect unsupported generic type arguments in local variable
+       declarations
+
 2008-12-14  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodebasemodule.vala:
index fd41be5ec44d81561b94c2e8e2d27ce24e7ccddd..d25b04ccb677733a2133a6521ee6175f8f08b9ed 100644 (file)
@@ -1345,6 +1345,8 @@ public class Vala.CCodeBaseModule : CCodeModule {
        }
 
        public override void visit_local_variable (LocalVariable local) {
+               check_type (local.variable_type);
+
                local.accept_children (codegen);
 
                if (local.variable_type is ArrayType) {