summaryrefslogtreecommitdiff
path: root/vala/valaenumvaluetype.vala
diff options
context:
space:
mode:
authorPrinceton Ferro <princetonferro@gmail.com>2020-03-01 09:54:13 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-03-01 12:16:30 +0100
commitb592c3dbb7b64c18446f61d5df87d1489f44aba9 (patch)
treea0624c31e00e33a06e9a20195ab0cb68c1a470ea /vala/valaenumvaluetype.vala
parent4fc14d7a526a8c64ad99fb3361389addfa94a033 (diff)
downloadvala-b592c3dbb7b64c18446f61d5df87d1489f44aba9.tar.gz
vala: Fix circular reference in EnumValueType
Diffstat (limited to 'vala/valaenumvaluetype.vala')
-rw-r--r--vala/valaenumvaluetype.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valaenumvaluetype.vala b/vala/valaenumvaluetype.vala
index 6c6aca398..027c30db1 100644
--- a/vala/valaenumvaluetype.vala
+++ b/vala/valaenumvaluetype.vala
@@ -50,7 +50,7 @@ public class Vala.EnumValueType : ValueType {
to_string_method.is_extern = true;
to_string_method.set_attribute_string ("CCode", "cheader_filename", "glib-object.h");
to_string_method.owner = type_symbol.scope;
- to_string_method.this_parameter = new Parameter ("this", this);
+ to_string_method.this_parameter = new Parameter ("this", copy ());
to_string_method.scope.add (to_string_method.this_parameter.name, to_string_method.this_parameter);
}
return to_string_method;