[vala/staging: 2/2] vala: Return copy of constant type in get_value_type_for_symbol()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 2/2] vala: Return copy of constant type in get_value_type_for_symbol()
- Date: Sat, 4 Jul 2020 14:05:30 +0000 (UTC)
commit f79935ef819726e1852a8bf84347ef52ed2b4e1c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Jul 4 16:04:22 2020 +0200
vala: Return copy of constant type in get_value_type_for_symbol()
vala/valasemanticanalyzer.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index 1404f13cd..8242efd35 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -278,7 +278,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
return new EnumValueType ((Enum) sym.parent_symbol);
} else if (sym is Constant) {
unowned Constant c = (Constant) sym;
- return c.type_reference;
+ return c.type_reference.copy ();
} else if (sym is Property) {
unowned Property prop = (Property) sym;
if (lvalue) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]