From: Rico Tzschichholz Date: Wed, 6 Mar 2019 16:25:05 +0000 (+0100) Subject: tests: Add regression test for generic-type interference of static function X-Git-Tag: 0.42.7~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d19f46f751a76e253d8712b6c99d05a6d352fcb;p=thirdparty%2Fvala.git tests: Add regression test for generic-type interference of static function --- diff --git a/tests/Makefile.am b/tests/Makefile.am index af9ae54d7..caea87f06 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -410,6 +410,7 @@ TESTS = \ asynchronous/result-pos.vala \ asynchronous/yield.vala \ generics/constructor-chain-up.vala \ + generics/inference-static-function.vala \ generics/bug640330.test \ generics/bug640330.vala \ generics/bug694765-1.vala \ diff --git a/tests/generics/inference-static-function.vala b/tests/generics/inference-static-function.vala new file mode 100644 index 000000000..4c004bb83 --- /dev/null +++ b/tests/generics/inference-static-function.vala @@ -0,0 +1,9 @@ +class Foo { + public static G[] bar () { + return {}; + } +} + +void main () { + Foo.bar (); +}