]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add "missing class prerequisite for interface" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Sep 2018 13:59:56 +0000 (15:59 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Sep 2018 13:59:56 +0000 (15:59 +0200)
tests/Makefile.am
tests/objects/bug554329.test [new file with mode: 0644]

index f4c0372e066cb5e979945dfeb6f07304a5230e17..d71fb4650cf00f3df2507bd0704d76c190fb67dd 100644 (file)
@@ -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 (file)
index 0000000..5044204
--- /dev/null
@@ -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 ();
+}