]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
valadoc/tests: construct properties require GLib.Object derived class
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 28 Apr 2019 07:25:23 +0000 (09:25 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 28 Apr 2019 07:27:06 +0000 (09:27 +0200)
valadoc/tests/drivers/api-test.data.vapi
valadoc/tests/drivers/generic-api-test.vala

index 1fdb500c744a2c20e211dbb79ba8d18daa1c3ed2..788a6bab6478ad19ca676ad5f782ae1f6e42a2c3 100644 (file)
@@ -57,7 +57,7 @@ public class TestClassGlobal {
        public static void static_method ();
        public int property_1 { get; set; }
        public int property_2 { get; }
-       public int property_3 { owned get; construct set; }
+       public int property_3 { owned get; set; }
        public delegate int Foo ();
        public signal int sig_1 ();
 }
@@ -70,7 +70,7 @@ public interface TestInterfaceGlobal {
        public static void static_method ();
        public int property_1 { get; set; }
        public int property_2 { get; }
-       public int property_3 { owned get; construct set; }
+       public int property_3 { owned get; set; }
        public delegate int Foo ();
        public signal int sig_1 ();
 }
index f8e57bb5069829531849e4bacd006c5d0da87de5..94f572cfd4201481886bd1f5ad133c9f3cc88a1d 100644 (file)
@@ -641,7 +641,7 @@ public static void test_class_global (Api.Class? cl, Api.Package pkg, Api.Namesp
 
 
                        assert (property.setter.get_cname () == "test_class_global_set_property_3");
-                       assert (property.setter.is_construct == true);
+                       assert (property.setter.is_construct == false);
                        assert (property.setter.is_get == false);
                        assert (property.setter.is_set == true);
                        assert (property.setter.is_owned == false);
@@ -1053,7 +1053,7 @@ public static void test_interface_global (Api.Interface? iface, Api.Package pkg,
 
 
                        assert (property.setter.get_cname () == "test_interface_global_set_property_3");
-                       assert (property.setter.is_construct == true);
+                       assert (property.setter.is_construct == false);
                        assert (property.setter.is_get == false);
                        assert (property.setter.is_set == true);
                        assert (property.setter.is_owned == false);