[vala/staging] vala: Make Vala.Variable an abstract class



commit 47d85ba624c4ba91e4c8cc6a380643f6371b683a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Jan 19 08:55:38 2022 +0100

    vala: Make Vala.Variable an abstract class

 vala/valavariable.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valavariable.vala b/vala/valavariable.vala
index 80a444c0b..cccfbe72f 100644
--- a/vala/valavariable.vala
+++ b/vala/valavariable.vala
@@ -20,7 +20,7 @@
  *     Jürg Billeter <j bitron ch>
  */
 
-public class Vala.Variable : Symbol {
+public abstract class Vala.Variable : Symbol {
        /**
         * The optional initializer expression.
         */
@@ -54,7 +54,7 @@ public class Vala.Variable : Symbol {
        Expression? _initializer;
        DataType? _variable_type;
 
-       public Variable (DataType? variable_type, string? name, Expression? initializer = null, 
SourceReference? source_reference = null, Comment? comment = null) {
+       protected Variable (DataType? variable_type, string? name, Expression? initializer = null, 
SourceReference? source_reference = null, Comment? comment = null) {
                base (name, source_reference, comment);
                this.variable_type = variable_type;
                this.initializer = initializer;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]