From f5c4671bfbad96bf346bd7e9a21fc4317b4959df Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Dec 2022 17:00:20 +0530 Subject: Adds most of the tools --- v_windows/v/vlib/v/checker/tests/void_optional_err.vv | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 v_windows/v/vlib/v/checker/tests/void_optional_err.vv (limited to 'v_windows/v/vlib/v/checker/tests/void_optional_err.vv') diff --git a/v_windows/v/vlib/v/checker/tests/void_optional_err.vv b/v_windows/v/vlib/v/checker/tests/void_optional_err.vv new file mode 100644 index 0000000..136e6e5 --- /dev/null +++ b/v_windows/v/vlib/v/checker/tests/void_optional_err.vv @@ -0,0 +1,7 @@ +fn ret_void() ?void { + return error('error') +} + +fn main() { + _ = ret_void() or { panic('$err') } +} -- cgit v1.2.3