Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
parser
/
tests
/
method_call_receiver_err.vv
15
lines
·
11
sloc
·
172 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
module main
2
3
struct S1 {}
4
5
fn main() {
6
s1 := S1{}
7
8
$for method in S1.methods {
9
println(S1.method_hello('yo'))
10
}
11
}
12
13
fn (t S1) method_hello() string {
14
return 'Hello'
15
}
16