Skip to content

Commit

Permalink
fix jsonrpc.ResponseWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Dec 28, 2023
1 parent 6937ea1 commit 4e1e62e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/checker/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,8 @@ fn (mut c Checker) method_call(mut node ast.CallExpr) ast.Type {
c.error('cannot ${method_name} `${arg_sym.name}` to `${left_sym.name}`', arg_expr.pos())
}
} else if left_sym.kind == .alias && final_left_sym.kind == .array
&& array_builtin_methods_chk.matches(method_name) && !left_sym.has_method(method_name) {
&& array_builtin_methods_chk.matches(method_name) && method_name != 'clone'
&& !left_sym.has_method(method_name) {
return c.array_builtin_method_call(mut node, left_type)
} else if c.pref.backend.is_js() && left_sym.name.starts_with('Promise[')
&& method_name == 'wait' {
Expand Down

0 comments on commit 4e1e62e

Please sign in to comment.