[vala/staging: 2/4] vala: Improve semantic check of simple type structs




commit 2765fcaa4ccb95b452eba8b3a6f87c1cba91aa4f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Mar 12 08:54:54 2021 +0100

    vala: Improve semantic check of simple type structs

 vala/valastruct.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index 120a7b086..4c4e28fdc 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -560,6 +560,9 @@ public class Vala.Struct : TypeSymbol {
                        }
                }
 
+               // FIXME Perform this [SimpleType] check in a better way
+               is_disposable ();
+
                if (!external && !external_package) {
                        bool has_instance_field = false;
                        foreach (Field f in fields) {


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