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



commit f95fa6b647a9cac6cf5a66e8791790ac83690146
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 337688f15..94b33ec8c 100644
--- a/vala/valalocalvariable.vala
+++ b/vala/valalocalvariable.vala
@@ -127,6 +127,7 @@ public class Vala.LocalVariable : Variable {
                        variable_type.floating_reference = false;
 
                        initializer.target_type = variable_type;
+                       variable_type.check (context);
                }
 
                if (initializer != null && !initializer.error) {


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