We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf1257f commit 8147388Copy full SHA for 8147388
1 file changed
vlib/v/checker/fn.v
@@ -2890,6 +2890,9 @@ fn (mut c Checker) set_node_expected_arg_types(mut node ast.CallExpr, func &ast.
2890
node.expected_arg_types << func.params[i].typ
2891
}
2892
2893
+ if func.generic_names.len > 0 {
2894
+ node.expected_arg_types.map(c.unwrap_generic(it))
2895
+ }
2896
2897
2898
fn (mut c Checker) post_process_generic_fns() ! {
0 commit comments