summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-03-10 18:14:09 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-03-10 18:14:09 +0100
commit371512e6c85a136538869fa684a50bbfdf921f23 (patch)
treed9e61e71aa0461c88469b191711b38711132d671
parenta8d1c68c4200a8fc8afafdc498ae780d68a0c4e7 (diff)
downloadvala-371512e6c85a136538869fa684a50bbfdf921f23.tar.gz
tests: Extend "struct with delegate" test to increase coverage
-rw-r--r--tests/structs/structs.vala5
1 files changed, 3 insertions, 2 deletions
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;
}
}