Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix jsonrpc.ResponseWriter
Browse files Browse the repository at this point in the history
yuyi98 committed Dec 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6ccf4ae commit 6937ea1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vlib/v/checker/fn.v
Original file line number Diff line number Diff line change
@@ -1779,9 +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_with_generic_parent(method_name) {
return c.array_builtin_method_call(mut node, unwrapped_left_type)
&& array_builtin_methods_chk.matches(method_name) && !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' {
info := left_sym.info as ast.Struct

0 comments on commit 6937ea1

Please sign in to comment.