From: Rico Tzschichholz Date: Sun, 10 Mar 2019 17:14:09 +0000 (+0100) Subject: tests: Extend "struct with delegate" test to increase coverage X-Git-Tag: 0.44.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=371512e6c85a136538869fa684a50bbfdf921f23;p=thirdparty%2Fvala.git tests: Extend "struct with delegate" test to increase coverage --- diff --git a/tests/structs/structs.vala b/tests/structs/structs.vala index ae4e6f734..dabe021d8 100644 --- a/tests/structs/structs.vala +++ b/tests/structs/structs.vala @@ -29,9 +29,10 @@ struct StructWithNamedCreationMethod { delegate void Func (); struct StructWithFunc { - int foo; + public Func foo; - public StructWithFunc (Func f) { + public StructWithFunc (owned Func f) { + foo = (owned) f; } }