mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
133 B
V
11 lines
133 B
V
fn process(foo &&int) int {
|
|
return **foo
|
|
}
|
|
|
|
fn test_ref_deref() {
|
|
foo := 12
|
|
bar := &foo
|
|
fiz := process(&bar)
|
|
assert fiz == 12
|
|
}
|