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

8 lines
112 B
Plaintext

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