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

11 lines
116 B
Plaintext

fn foo() ?bool {
return true
}
fn main() {
foo()? // only works in main()
println('done')
}
===output===
done