[vala/0.36] vala: Check inferred variable_type of LocalVariables
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36] vala: Check inferred variable_type of LocalVariables
- Date: Thu, 28 Feb 2019 17:40:39 +0000 (UTC)
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]