]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Unify backing symbol instance of data-types (2)
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 2 Oct 2019 11:37:20 +0000 (13:37 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 2 Oct 2019 11:37:20 +0000 (13:37 +0200)
vala/valafieldprototype.vala
vala/valapropertyprototype.vala

index 4fc394fcae4e8e47c741ec6250a4f05f4ffe1081..3813a55c9953817647ae61d27598d1814322f778 100644 (file)
@@ -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 () {
index 62306cd6c1f33e409ee627e47855c49078985d54..408fddb71a6d669a2707cf3212a2345527964035 100644 (file)
  * 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 () {