1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

foo()? test

This commit is contained in:
Alexander Medvednikov 2019-11-18 12:11:25 +03:00
parent 4c0269597d
commit 439bb0c5de

View File

@ -0,0 +1,10 @@
fn foo() ?bool {
return true
}
fn main() {
foo()? // only works in main()
println('done')
}
===output===
done