repo.or.cz
/
vala-lang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
codegen: Limit scope of locals freed on errors thrown from catch clauses
[vala-lang.git]
/
tests
/
errors
/
bug596228.vala
blob
25456a3babc52b4e73c81fded04d636255d2f628
1
struct
Foo
{
2
Foo
(
int
foo
) {
3
this
.
foo
=
foo
;
4
}
5
6
int
foo
;
7
}
8
9
Foo
get_foo
()
throws Error
{
10
return
Foo
(
42
);
11
}
12
13
void
main
() {
14
var
foo
=
get_foo
();
15
assert
(
foo
.
foo
==
42
);
16
}