]> 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)
committerJürg Billeter <j@bitron.ch>
Tue, 9 Feb 2016 20:59:48 +0000 (21:59 +0100)
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 ();