summaryrefslogtreecommitdiff
path: root/vala/valavoidtype.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-11-18 13:02:28 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-11-18 13:07:34 +0100
commitb5442af426ac432fbf0a3a4f3c341952eecf5a41 (patch)
tree36fa117d18cb7e33573651dfff2ae2e2b447dc5e /vala/valavoidtype.vala
parent552467a619fcc92353a442046fbe711d7283e28a (diff)
downloadvala-b5442af426ac432fbf0a3a4f3c341952eecf5a41.tar.gz
vala: VoidType is actually compatible with itself
See https://gitlab.gnome.org/GNOME/vala/issues/878
Diffstat (limited to 'vala/valavoidtype.vala')
-rw-r--r--vala/valavoidtype.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/vala/valavoidtype.vala b/vala/valavoidtype.vala
index 9035c25c8..1cb6f2ea4 100644
--- a/vala/valavoidtype.vala
+++ b/vala/valavoidtype.vala
@@ -34,6 +34,10 @@ public class Vala.VoidType : DataType {
return (type2 is VoidType);
}
+ public override bool compatible (DataType type2) {
+ return (type2 is VoidType);
+ }
+
public override string to_qualified_string (Scope? scope) {
return "void";
}