Skip to content

Commit

Permalink
fix lock method name
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Sep 28, 2024
1 parent 89aa2fd commit 6f89aa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fn_call.v
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ fn (mut app App) call_expr(call CallExpr) {
}
}

// Can be empty if not println
fn_name = app.go2v_ident(fn_name)

app.gen('${fn_name}(') // fn_name is empty unless print

// In V println can only accept one argument, so convert multiple arguments into a single string
Expand Down Expand Up @@ -137,7 +140,7 @@ fn (mut app App) selector_expr_fn_call(call CallExpr, sel SelectorExpr) {
if sel_name == 'string' {
sel_name = 'str'
}
app.gen(sel_name)
app.gen(app.go2v_ident(sel_name))
}

fn (mut app App) make_call(call CallExpr) {
Expand Down

0 comments on commit 6f89aa5

Please sign in to comment.