diff options
author | Jürg Billeter <j@bitron.ch> | 2009-10-28 16:10:29 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-10-28 16:10:29 +0100 |
commit | 3eba8bfcff9f42e5971bc31980d9f317d1782a88 (patch) | |
tree | 64bdacc2bee255cd97a93b1a176520376c887877 /tests/asynchronous | |
parent | d040b40d58f14b03e602f493bd5e551b62e0b1e0 (diff) | |
download | vala-3eba8bfcff9f42e5971bc31980d9f317d1782a88.tar.gz |
GAsync: Fix temporary variable initialization in loops
Fixes bug 599568.
Diffstat (limited to 'tests/asynchronous')
-rw-r--r-- | tests/asynchronous/bug599568.vala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/asynchronous/bug599568.vala b/tests/asynchronous/bug599568.vala new file mode 100644 index 000000000..77a66fd6d --- /dev/null +++ b/tests/asynchronous/bug599568.vala @@ -0,0 +1,9 @@ +async void do_foo () { + for (int i = 0; i < 2; i++) { + Value value = 42; + } +} + +void main () { + do_foo (); +} |