repo.or.cz
/
vala-gnome.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Release 0.41.92
[vala-gnome.git]
/
tests
/
delegates
/
reference_transfer.vala
blob
6aad6b1f97974ef45168e54781ac0599669e461f
1
delegate
void
FooFunc
();
2
3
class
Foo
{
4
FooFunc f
;
5
6
public
Foo
(
owned FooFunc d
) {
7
f
= (
owned
)
d
;
8
assert
(
d
==
null
);
9
}
10
}
11
12
void
main
() {
13
var
foo
=
new
Foo
(() => {});
14
}