This website requires JavaScript.
Explore
Help
Sign In
vieter-v
/
v
Watch
2
Star
0
Fork
You've already forked v
0
Code
Issues
Pull Requests
Releases
Activity
efc5cab8c3
v
/
vlib
/
v
/
tests
/
ref_return_test.v
15 lines
113 B
V
Raw
Blame
History
struct
Aa
{
a
int
}
fn
f
(
)
&
Aa
{
return
&
Aa
{
a
:
5
}
}
fn
test_ref_return
(
)
{
x
:=
f
(
)
assert
x
.
a
==
5
}
Reference in New Issue
View Git Blame
Copy Permalink