]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: VoidType is actually compatible with itself
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 18 Nov 2019 12:02:28 +0000 (13:02 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 18 Nov 2019 12:07:34 +0000 (13:07 +0100)
See https://gitlab.gnome.org/GNOME/vala/issues/878

vala/valavoidtype.vala

index 9035c25c8fc9c1a99ff38faebca3b46e534c8dff..1cb6f2ea40b79f6477a74344a47e98c3510afb04 100644 (file)
@@ -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";
        }