]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Extend "properties" tests to increase coverage
authorDr. Michael Lauer <mickey@vanille-media.de>
Fri, 23 Feb 2018 15:27:59 +0000 (16:27 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 23 Feb 2018 15:27:59 +0000 (16:27 +0100)
Based on test-case from https://bugzilla.gnome.org/show_bug.cgi?id=683160

tests/objects/properties.vala

index 3035b99d84203e575717188fbf23fafb65037e29..1a40e95e03211127069b1294c2fe2b3b94d9246f 100644 (file)
@@ -141,6 +141,19 @@ class Maman.Baz : Object, Ibaz {
        }
 }
 
+interface Maman.IBiz : Object {
+       public abstract int number { get; construct; }
+}
+
+abstract class Maman.ABiz : Object, IBiz {
+       public int number { get; construct; }
+       public abstract int number2 { get; construct; }
+}
+
+class Maman.Biz : ABiz {
+       public override int number2 { get; construct; }
+}
+
 void main () {
        Sample.main ();
 }