mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
108 B
V
11 lines
108 B
V
fn opt_fn() ?int {
|
|
return 2
|
|
}
|
|
|
|
fn main() {
|
|
x := 1
|
|
if x := opt_fn() {
|
|
println(x)
|
|
}
|
|
}
|