diff --git a/vlib/compiler/tests/repl/option.repl b/vlib/compiler/tests/repl/option.repl new file mode 100644 index 0000000000..84ed92976d --- /dev/null +++ b/vlib/compiler/tests/repl/option.repl @@ -0,0 +1,10 @@ +fn foo() ?bool { + return true +} + +fn main() { + foo()? // only works in main() + println('done') +} +===output=== +done