]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Check inferred variable_type of LocalVariables
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 25 Jan 2019 19:10:48 +0000 (20:10 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 28 Feb 2019 17:25:40 +0000 (18:25 +0100)
vala/valalocalvariable.vala

index 337688f1514ff97e2fff6f8103eb403c16597ee6..94b33ec8c03a85e8992e90ef351899feb15b0936 100644 (file)
@@ -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) {