From 10754bec97a6adf3119215ef9f49d0c8cd53e43f Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Wed, 2 Oct 2019 13:37:20 +0200 Subject: [PATCH] vala: Unify backing symbol instance of data-types (2) --- vala/valafieldprototype.vala | 8 ++++++-- vala/valapropertyprototype.vala | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) 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 () { -- 2.47.2