From: Rico Tzschichholz Date: Thu, 3 Aug 2023 15:17:23 +0000 (+0200) Subject: WIP X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afc7a196a35e63a12cb26dbba485fb2d11cd7ff8;p=thirdparty%2Fvala.git WIP --- diff --git a/tests/generics/no-generic-args-compact-class.vala b/tests/generics/no-generic-args-compact-class.vala index 95a97b483..b932d504f 100644 --- a/tests/generics/no-generic-args-compact-class.vala +++ b/tests/generics/no-generic-args-compact-class.vala @@ -1,25 +1,22 @@ - -void main () { - var b = new Baz (); - unowned Bar z = b.test (); -} - [Compact] class Foo { - public int l; + public int i; } [Compact] class Bar : Foo { - public void t () { - } } -[CCode (no_generic_args=true)] -class Baz : Object where J : Foo { - J x; +[CCode (no_generic_args = true)] +class Baz : Object where G : Foo { + G g; - public unowned J test () { - return this.x; + public unowned G foo () { + return g; } } + +void main () { + var baz = new Baz (); + unowned Bar bar = baz.foo (); +}