]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Don't carry floating reference into unknown target type expression
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 26 Jun 2020 13:27:11 +0000 (15:27 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 26 Jun 2020 13:27:11 +0000 (15:27 +0200)
commiteb797855ec320dfcfe50cfa3bf056dc999ee3782
tree35ec0027aa8b30d9051289938c5c31f26f472ba3
parent6ce02caa99b0dfb105b0090cb1f3f221b14d22b8
vala: Don't carry floating reference into unknown target type expression

A floating reference result of a method, which may throw an error, needs
to be sinked when passed as argument for ellipsis parameter.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1018
tests/Makefile.am
tests/semantic/floating-reference-error.vala [new file with mode: 0644]
tests/semantic/floating-reference.vala
vala/valamethodcall.vala