Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
options
/
option_ifguard_array_of_option_test.v
14
lines
·
12
sloc
·
173 bytes
·
5cd258421f2494ffaf71f27dc311a1a5d4bd6867
Raw
1
module
main
2
3
fn
make_option() ?string {
4
return
'abc'
5
}
6
7
fn
test_main() {
8
cols := [make_option()]
9
if
col := cols[0] {
10
assert col ==
'abc'
11
assert
true
12
dump(col)
13
}
14
}
15