]> 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>
Fri, 26 Jan 2024 14:26:46 +0000 (15:26 +0100)
commit870cd1e2fa7c278a7802dc6f50ef211fbced7a74
tree2f46242bdf12c86e8d895181e0216350d14bdd33
parent8d5afc9a9c7f4a4bbf78e906b83dad7c277eea3c
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