From: Jürg Billeter Date: Sun, 14 Dec 2008 22:15:47 +0000 (+0000) Subject: Detect unsupported generic type arguments in local variable declarations X-Git-Tag: VALA_0_5_3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84ff946dec605b964922f0484f0874d0533215a2;p=thirdparty%2Fvala.git Detect unsupported generic type arguments in local variable declarations 2008-12-14 Jürg Billeter * gobject/valaccodebasemodule.vala: Detect unsupported generic type arguments in local variable declarations svn path=/trunk/; revision=2148 --- diff --git a/ChangeLog b/ChangeLog index 43071c208..0dba23321 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-14 Jürg Billeter + + * gobject/valaccodebasemodule.vala: + + Detect unsupported generic type arguments in local variable + declarations + 2008-12-14 Jürg Billeter * gobject/valaccodebasemodule.vala: diff --git a/gobject/valaccodebasemodule.vala b/gobject/valaccodebasemodule.vala index fd41be5ec..d25b04ccb 100644 --- a/gobject/valaccodebasemodule.vala +++ b/gobject/valaccodebasemodule.vala @@ -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) {