]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Async methods don't allow out-parameters before in-parameters dd304f4d8ace88491a7c93e6939bc577fd2f7eaf
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 21 Oct 2018 08:34:28 +0000 (10:34 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 8 Jan 2019 17:14:04 +0000 (18:14 +0100)
commitdd304f4d8ace88491a7c93e6939bc577fd2f7eaf
tree38b319213c96182235f2ff7c851b400379b138be
parentafb9ea9687db1ca95ff169016e605f04e650cdfb
vala: Async methods don't allow out-parameters before in-parameters

out-parameters are always handled in the *_finish implementation and
therefore are asynchronous. Report an error for occurances in source
and a warning for GIR sources where convert them to pointer-types to
create a usuable signature for bindings.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/636
tests/Makefile.am
tests/asynchronous/out-parameter-invalid.test [new file with mode: 0644]
tests/gir/async-sync-out.test [new file with mode: 0644]
vala/valagirparser.vala
vala/valamethod.vala