checker: remove debug println introduced in 4f658ec
parent
4f658ec292
commit
0e54b9acb5
|
@ -1613,7 +1613,6 @@ pub fn (mut c Checker) call_fn(mut call_expr ast.CallExpr) table.Type {
|
||||||
}
|
}
|
||||||
if f.is_generic && call_expr.generic_type == table.void_type {
|
if f.is_generic && call_expr.generic_type == table.void_type {
|
||||||
// no type arguments given in call, attempt implicit instantiation
|
// no type arguments given in call, attempt implicit instantiation
|
||||||
println('try infer for $f.name')
|
|
||||||
c.infer_fn_types(f, mut call_expr)
|
c.infer_fn_types(f, mut call_expr)
|
||||||
}
|
}
|
||||||
if call_expr.generic_type != table.void_type && f.return_type != 0 { // table.t_type {
|
if call_expr.generic_type != table.void_type && f.return_type != 0 { // table.t_type {
|
||||||
|
|
Loading…
Reference in New Issue