v/vlib/compiler/tests/repl/option.repl

11 lines
116 B
Plaintext
Raw Normal View History

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