15 lines
105 B
V
15 lines
105 B
V
|
struct St {
|
||
|
mut:
|
||
|
e int
|
||
|
}
|
||
|
|
||
|
fn (mut x St) f() {
|
||
|
x.e++
|
||
|
println(x)
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
a := St{e: 2}
|
||
|
a.f()
|
||
|
}
|