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

16 lines
171 B
V

module main
struct S1{}
fn main() {
s1 := S1{}
$for method in S1.methods {
println(S1.method_hello('yo'))
}
}
fn (t S1) method_hello() string {
return 'Hello'
}