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

8 lines
247 B
Plaintext

vlib/v/parser/tests/declare_static_fn_as_receiver_method_err.vv:4:12: error: cannot declare a static function as a receiver method
2 | }
3 |
4 | fn (y Foo) Foo.new() Foo {
| ~~~~~~~
5 | return Foo{}
6 | }