Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
fmt
/
tests
/
option_with_multi_stmts_keep.vv
12
lines
·
11
sloc
·
142 bytes
·
90941b3b1f5513cef7f913bc54f1b5a2af0c8c7a
Raw
1
fn main() {
2
x := fmt_test() or {
3
println(err.msg())
4
-100
5
}
6
println(x)
7
assert x == -100
8
}
9
10
fn fmt_test() ?int {
11
return error('foo')
12
}
13