diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-11-18 13:02:28 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-11-18 13:07:34 +0100 |
commit | b5442af426ac432fbf0a3a4f3c341952eecf5a41 (patch) | |
tree | 36fa117d18cb7e33573651dfff2ae2e2b447dc5e /vala/valavoidtype.vala | |
parent | 552467a619fcc92353a442046fbe711d7283e28a (diff) | |
download | vala-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.vala | 4 |
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"; } |