]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Fix critical warning with dynamic properties
authorJürg Billeter <j@bitron.ch>
Tue, 9 Feb 2016 20:37:44 +0000 (21:37 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 20 Feb 2016 14:12:39 +0000 (15:12 +0100)
(cherry picked from commit 21d211026c34891153fc8207050c0a8573bff14e)

vala/valaassignment.vala

index 7c8599e54288ee1c4767c613651f1f9d9231e98c..a6b73b913b6467fa45e60bbe44d65cc1dc620400 100644 (file)
@@ -174,6 +174,8 @@ public class Vala.Assignment : Expression {
                                }
                                var sig = (Signal) ma.symbol_reference;
                                right.target_type = new DelegateType (sig.get_delegate (ma.inner.value_type, this));
+                       } else if (ma.symbol_reference is DynamicProperty) {
+                               // target_type not available for dynamic properties
                        } else {
                                right.formal_target_type = ma.formal_value_type.copy ();
                                right.target_type = ma.value_type.copy ();