From: Rico Tzschichholz Date: Wed, 2 Oct 2019 11:37:20 +0000 (+0200) Subject: vala: Unify backing symbol instance of data-types (2) X-Git-Tag: 0.47.1~124 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=10754bec97a6adf3119215ef9f49d0c8cd53e43f;p=thirdparty%2Fvala.git vala: Unify backing symbol instance of data-types (2) --- diff --git a/vala/valafieldprototype.vala b/vala/valafieldprototype.vala index 4fc394fca..3813a55c9 100644 --- a/vala/valafieldprototype.vala +++ b/vala/valafieldprototype.vala @@ -26,10 +26,14 @@ using GLib; * A reference to an instance field without a specific instance. */ public class Vala.FieldPrototype : DataType { - public weak Field field_symbol { get; set; } + public weak Field field_symbol { + get { + return (Field) symbol; + } + } public FieldPrototype (Field field_symbol) { - this.field_symbol = field_symbol; + base.with_symbol (field_symbol); } public override DataType copy () { diff --git a/vala/valapropertyprototype.vala b/vala/valapropertyprototype.vala index 62306cd6c..408fddb71 100644 --- a/vala/valapropertyprototype.vala +++ b/vala/valapropertyprototype.vala @@ -24,10 +24,14 @@ * A reference to an instance property without a specific instance. */ public class Vala.PropertyPrototype : DataType { - public weak Property property_symbol { get; set; } + public weak Property property_symbol { + get { + return (Property) symbol; + } + } public PropertyPrototype (Property property_symbol) { - this.property_symbol = property_symbol; + base.with_symbol (property_symbol); } public override DataType copy () {