From: Rico Tzschichholz Date: Mon, 18 Nov 2019 12:02:28 +0000 (+0100) Subject: vala: VoidType is actually compatible with itself X-Git-Tag: 0.47.2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5442af426ac432fbf0a3a4f3c341952eecf5a41;p=thirdparty%2Fvala.git vala: VoidType is actually compatible with itself See https://gitlab.gnome.org/GNOME/vala/issues/878 --- 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"; }