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.vv

12 lines
104 B
V

struct Foo {
}
fn (y Foo) Foo.new() Foo {
return Foo{}
}
fn main() {
x := Foo{}.new()
println(x)
}