From: Rico Tzschichholz Date: Fri, 21 Sep 2018 13:59:56 +0000 (+0200) Subject: tests: Add "missing class prerequisite for interface" test to increase coverage X-Git-Tag: 0.43.1~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=458d5f501aa462f74412322ff8e6997fd674fcfe;p=thirdparty%2Fvala.git tests: Add "missing class prerequisite for interface" test to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index f4c0372e0..d71fb4650 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -259,6 +259,7 @@ TESTS = \ objects/test-029.vala \ objects/test-034.vala \ objects/bug541728.test \ + objects/bug554329.test \ objects/bug564011.test \ objects/bug564090.test \ objects/bug566909.vala \ diff --git a/tests/objects/bug554329.test b/tests/objects/bug554329.test new file mode 100644 index 000000000..50442041b --- /dev/null +++ b/tests/objects/bug554329.test @@ -0,0 +1,16 @@ +Invalid Code + +interface IFoo { + public abstract void bar (); +} + +class Foo : IFoo { + public void bar () { + } +} + +void main () { + Foo foo = new Foo (); + IFoo ifoo = foo; + ifoo.bar (); +}