[vala] Add test for bug 595538
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Add test for bug 595538
- Date: Sat, 26 Sep 2009 14:39:40 +0000 (UTC)
commit 5c975d781eae8e7b411ac868b576cc660ce5b9b5
Author: Jürg Billeter <j bitron ch>
Date: Sat Sep 26 16:39:00 2009 +0200
Add test for bug 595538
tests/Makefile.am | 1 +
tests/methods/bug595538.vala | 15 +++++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 61eb60d..0e995df 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,6 +23,7 @@ TESTS = \
namespaces.vala \
methods/lambda.vala \
methods/closures.vala \
+ methods/bug595538.vala \
control-flow/break.vala \
control-flow/expressions-conditional.vala \
control-flow/for.vala \
diff --git a/tests/methods/bug595538.vala b/tests/methods/bug595538.vala
new file mode 100644
index 0000000..18a183b
--- /dev/null
+++ b/tests/methods/bug595538.vala
@@ -0,0 +1,15 @@
+delegate void Foo ();
+
+void do_foo (Foo foo) {
+ foo ();
+}
+
+void main () {
+ int i = 42;
+ do_foo (() => {
+ do_foo (() => {
+ int j = i;
+ });
+ });
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]