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

8 lines
112 B
Plaintext
Raw Normal View History

fn foo() ?bool {return true}
2019-11-18 12:11:25 +03:00
fn main() {
foo()? // only works in main()
println('done')
}
===output===
done