[vala/0.40] 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/0.40] vala: Return copy of constant type in get_value_type_for_symbol()
- Date: Thu, 30 Jul 2020 11:02:58 +0000 (UTC)
commit 15a7f147f5544dbba209f07be1c2efc9bb0db597
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 adc0d5ff4..a1434967a 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -247,7 +247,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
return new EnumValueType ((Enum) sym.parent_symbol);
} else if (sym is Constant) {
var c = (Constant) sym;
- return c.type_reference;
+ return c.type_reference.copy ();
} else if (sym is Property) {
var prop = (Property) sym;
if (lvalue) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]