]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Move formal_target_type when transforming method-call/object-creation
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 26 Jan 2024 14:26:46 +0000 (15:26 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 28 Jan 2024 15:24:02 +0000 (16:24 +0100)
commitd1926590d14dd971e956ee34a4ecdbec53d61d4c
tree12f1869be1b8f4b6d97c64f956707a0f3134f068
parent8a4536c3569c010413da1935a15294d73f3fde8f
vala: Move formal_target_type when transforming method-call/object-creation

Avoid errornous casting from assumed generic type.

Found by -Werror=int-conversion
tests/Makefile.am
tests/generics/inference-argument-may-fail-2.c-expected [new file with mode: 0644]
tests/generics/inference-argument-may-fail-2.vala [new file with mode: 0644]
vala/valamethodcall.vala
vala/valaobjectcreationexpression.vala