]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
methodcallmodule: Very small fix
authorLorenz Wildberg <lorenz@wild-fisch.de>
Fri, 28 Jul 2023 14:26:35 +0000 (17:26 +0300)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 31 Jan 2024 17:51:28 +0000 (18:51 +0100)
codegen/valaccodemethodcallmodule.vala

index 1277799b12abc1c71a1a3b0fdd1c187974256801..38a05dc52e7950f3a9b89eaef65d9c3f57c85729 100644 (file)
@@ -253,7 +253,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                        }
                } else if (m is CreationMethod && m.parent_symbol is Struct) {
                        ccall.add_argument (get_this_cexpression ());
-               } else if (m != null && m.has_type_parameters () && !get_ccode_has_generic_type_parameter (m) && !get_ccode_simple_generics (m) && (ccall != finish_call || expr.is_yield_expression)) {
+               } else if (m != null && m.has_type_parameters () && !get_ccode_has_generic_type_parameter (m) && !m.get_attribute_bool ("CCode", "no_generic_args", false) && !get_ccode_simple_generics (m) && (ccall != finish_call || expr.is_yield_expression)) {
                        // generic method
                        // don't add generic arguments for .end() calls
                        add_generic_type_arguments (m, in_arg_map, ma.get_type_arguments (), expr);