summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2022-01-19 08:55:38 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2022-01-19 08:55:38 +0100
commit47d85ba624c4ba91e4c8cc6a380643f6371b683a (patch)
tree83d743d861b6bebd163676635ddd6b9b315c3697
parentca3c1694bf3478c67ca05f456971ecc1f14d7dc8 (diff)
downloadvala-47d85ba624c4ba91e4c8cc6a380643f6371b683a.tar.gz
vala: Make Vala.Variable an abstract class
-rw-r--r--vala/valavariable.vala4
1 files 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;