1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: fix reflection_sym_test.v (#18574)

This commit is contained in:
yuyi 2023-06-27 15:53:35 +08:00 committed by GitHub
parent 02c382569c
commit 3558e05bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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{}

View File

@ -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