From: Dr. Michael Lauer Date: Fri, 23 Feb 2018 15:27:59 +0000 (+0100) Subject: tests: Extend "properties" tests to increase coverage X-Git-Tag: 0.39.92~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75bc6dddb9893607ef913191b91cf8969acf0a99;p=thirdparty%2Fvala.git tests: Extend "properties" tests to increase coverage Based on test-case from https://bugzilla.gnome.org/show_bug.cgi?id=683160 --- diff --git a/tests/objects/properties.vala b/tests/objects/properties.vala index 3035b99d8..1a40e95e0 100644 --- a/tests/objects/properties.vala +++ b/tests/objects/properties.vala @@ -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 (); }