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:
parent
02c382569c
commit
3558e05bfb
@ -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{}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user