summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-10-16 17:59:30 +0200
committerJürg Billeter <j@bitron.ch>2009-10-16 17:59:56 +0200
commitd32e981f704891e7532d15c8458c752fec86f7df (patch)
treec67395a3b27843012c89ff9d0a36c39da40d79a2 /tests
parente4a3bc64f91a4142389a86c71916ea5a4ae924c7 (diff)
downloadvala-d32e981f704891e7532d15c8458c752fec86f7df.tar.gz
GAsync: Fix non-closure lambda expressions in instance methods
Fixes bug 598697.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/asynchronous/bug598697.vala8
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 84b888193..0d041e5a3 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -64,6 +64,7 @@ TESTS = \
asynchronous/bug596177.vala \
asynchronous/bug597294.vala \
asynchronous/bug598677.vala \
+ asynchronous/bug598697.vala \
asynchronous/bug598698.vala \
dbus/basic-types.test \
dbus/arrays.test \
diff --git a/tests/asynchronous/bug598697.vala b/tests/asynchronous/bug598697.vala
new file mode 100644
index 000000000..804039a42
--- /dev/null
+++ b/tests/asynchronous/bug598697.vala
@@ -0,0 +1,8 @@
+public class Foo {
+ public async void do_foo () {
+ Func f = () => {};
+ }
+}
+
+void main () {
+}