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.44.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=502fa272b77afa07fdd24ccc630cab301c9acb41;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 f28a168e8..865228871 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -438,6 +438,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 (); +}