1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: minor cleanup in infer_fn_generic_types() (#17068)

This commit is contained in:
yuyi 2023-01-22 21:02:08 +08:00 committed by GitHub
parent b2dac566b0
commit a929466130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1010,7 +1010,7 @@ fn (mut c Checker) infer_fn_generic_types(func ast.Fn, mut node ast.CallExpr) {
}
if c.pref.is_verbose {
s := c.table.type_to_str(typ)
println('inferred `${func.name}<${s}>`')
println('inferred `${func.name}[${s}]`')
}
inferred_types << c.unwrap_generic(typ)
node.concrete_types << typ