codegen: Limit scope of locals freed on errors thrown from catch clauses
[vala-lang.git] / tests / errors / bug596228.vala
blob25456a3babc52b4e73c81fded04d636255d2f628
1 struct Foo {
2 Foo (int foo) {
3 this.foo = foo;
6 int foo;
9 Foo get_foo () throws Error {
10 return Foo (42);
13 void main () {
14 var foo = get_foo ();
15 assert (foo.foo == 42);