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
/
bug792077.vala
blob
4c29822b2b5b9c1834bf9fdd64d5798a217989a7
1
delegate
void
FooFunc
(
int
i
);
2
delegate FooFunc
BarFunc
();
3
4
int
result
=
0
;
5
6
void
main
() {
7
BarFunc func_gen
= () => {
8
return
(
data
) => {
9
result
=
data
;
10
};
11
};
12
13
FooFunc func
=
func_gen
();
14
func
(
42
);
15
assert
(
result
==
42
);
16
}