diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-04-01 14:02:55 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-04-01 14:05:27 +0200 |
commit | 792e9672a07fec8cbe4152789ad38c4304c8e266 (patch) | |
tree | 5fec9fd6beb642dc29ba8bde8d5c29f378ecc768 /vala/valadatatype.vala | |
parent | c69b4866c342116c8cf7b3d5a839929acc50b065 (diff) | |
download | vala-792e9672a07fec8cbe4152789ad38c4304c8e266.tar.gz |
vala: Consider boolean types are compatible with each other
Diffstat (limited to 'vala/valadatatype.vala')
-rw-r--r-- | vala/valadatatype.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala index 7dd0e8dcb..37d04a1ed 100644 --- a/vala/valadatatype.vala +++ b/vala/valadatatype.vala @@ -366,6 +366,10 @@ public abstract class Vala.DataType : CodeNode { } } + if (expr_struct.is_boolean_type () && expect_struct.is_boolean_type ()) { + return true; + } + // Allow compatiblity of struct subtypes in both ways if (expect_struct.is_subtype_of (expr_struct)) { return true; |