[vala/0.42] vala: Check inferred variable_type of LocalVariables
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] vala: Check inferred variable_type of LocalVariables
- Date: Thu, 28 Feb 2019 07:27:06 +0000 (UTC)
commit b5e78c81c5095e6d9e96aff24e89a239a3ec79a4
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 99f15a238..645451091 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]