Skip to content

Commit

Permalink
tests: fix reflection_sym_test.v (#18574)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Jun 27, 2023
1 parent 02c3825 commit 3558e05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/docs.md
Expand Up @@ -2438,7 +2438,7 @@ V now supports static type methods like `User.new()`. These are defined on a str
`fn [Type name].[function name]` and allow to organize all functions related to a struct:

```v oksyntax
struct User { }
struct User {}
fn User.new() User {
return User{}
Expand Down
2 changes: 1 addition & 1 deletion vlib/v/parser/fn.v
Expand Up @@ -536,7 +536,7 @@ run them via `v file.v` instead',
is_keep_alive: is_keep_alive
is_method: false
is_static_type_method: is_static_type_method
receiver_type: rec.typ // used only if is static type method
receiver_type: if is_static_type_method { rec.typ } else { 0 } // used only if is static type method
is_file_translated: p.is_translated
//
attrs: p.attrs
Expand Down

0 comments on commit 3558e05

Please sign in to comment.