From: Rico Tzschichholz Date: Sat, 23 Feb 2019 19:19:31 +0000 (+0100) Subject: tests: Add "constructor chain up" generics test to increase coverage X-Git-Tag: 0.42.6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=134cff079defb80deee8077e2b602e8d69add72e;p=thirdparty%2Fvala.git tests: Add "constructor chain up" generics test to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index b5fe150f8..5b086983e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -405,6 +405,7 @@ TESTS = \ asynchronous/generator.vala \ asynchronous/result-pos.vala \ asynchronous/yield.vala \ + generics/constructor-chain-up.vala \ generics/bug640330.test \ generics/bug640330.vala \ generics/bug694765-1.vala \ diff --git a/tests/generics/constructor-chain-up.vala b/tests/generics/constructor-chain-up.vala new file mode 100644 index 000000000..9256b2f32 --- /dev/null +++ b/tests/generics/constructor-chain-up.vala @@ -0,0 +1,12 @@ +class Foo : Object { + public Foo () { + } + + public Foo.bar () { + this (); + } +} + +void main () { + var foo = new Foo.bar (); +}