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
codegen: Fix floating reference regression with Variants
[vala-gnome.git]
/
tests
/
delegates
/
bug703804.vala
blob
8bb2d15a1c6af686a07bcc1f31aadda2cce46ba6
1
[
CCode
(
scope
=
"async"
)]
2
public
delegate
void
Run
();
3
4
static
void
eval
(
owned Run run
) {
5
Run own
= (
owned
)
run
;
6
own
();
7
}
8
9
void
main
() {
10
int
i
=
0
;
11
eval
(() => {
12
i
++;
13
});
14
assert
(
i
==
1
);
15
}