[vala/staging] vala: Check inferred variable_type of LocalVariables



commit 702c478e9b0f84db6e82e36d91832c8b844811d6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Jan 25 20:10:48 2019 +0100

    vala: Check inferred variable_type of LocalVariables

 vala/valalocalvariable.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/vala/valalocalvariable.vala b/vala/valalocalvariable.vala
index 67187ce76..3a2ecae01 100644
--- a/vala/valalocalvariable.vala
+++ b/vala/valalocalvariable.vala
@@ -143,6 +143,7 @@ public class Vala.LocalVariable : Variable {
                        variable_type.floating_reference = false;
 
                        initializer.target_type = variable_type;
+                       variable_type.check (context);
                }
 
                unowned ArrayType? variable_array_type = variable_type as ArrayType;


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