Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
nested_or_in_assign_decl_test.v
23
lines
·
18
sloc
·
257 bytes
·
55436caa9ae9c179639a4b238fc358ee7d768645
Raw
1
module
main
2
3
fn
fx1() ?int {
4
return
none
5
}
6
7
fn
fx2() ?int {
8
return
none
9
}
10
11
fn
fx3() ?int {
12
return
none
13
}
14
15
fn
test_nested_or_in_assign_decl() {
16
x1 := fx1()
17
x2 := fx2()
18
x3 := fx3()
19
def := 123
20
21
y := x1
or
{ x2
or
{ x3
or
{ def } } }
22
assert y == 123
23
}
24