mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
116 B
Plaintext
11 lines
116 B
Plaintext
|
fn foo() ?bool {
|
||
|
return true
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
foo()? // only works in main()
|
||
|
println('done')
|
||
|
}
|
||
|
===output===
|
||
|
done
|