diff options
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/void_optional_err.vv')
-rw-r--r-- | v_windows/v/old/vlib/v/checker/tests/void_optional_err.vv | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/void_optional_err.vv b/v_windows/v/old/vlib/v/checker/tests/void_optional_err.vv new file mode 100644 index 0000000..136e6e5 --- /dev/null +++ b/v_windows/v/old/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') } +} |