diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-03-27 21:43:25 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-03-27 21:46:32 +0200 |
commit | 5a25c2e93043176a86844f2682eba1fcf3216837 (patch) | |
tree | c39cecc5393030e9dc5014de7f2d91b4e1816213 /vala | |
parent | 6541079c11e96328362097b7cec930fc55523b6a (diff) | |
download | vala-5a25c2e93043176a86844f2682eba1fcf3216837.tar.gz |
vala: Improve initialization of namespace fields with compound literal
Regression of 9c35019ef300082243ef7c71c22088c52d3db38e
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1424
Diffstat (limited to 'vala')
-rw-r--r-- | vala/valainitializerlist.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valainitializerlist.vala b/vala/valainitializerlist.vala index a5d92403b..705829df8 100644 --- a/vala/valainitializerlist.vala +++ b/vala/valainitializerlist.vala @@ -84,7 +84,7 @@ public class Vala.InitializerList : Expression { return false; } } - return true; + return !(target_type == null || target_type.is_disposable ()); } public override bool is_pure () { |