diff --git a/vlib/v/tests/options/option_fn_var_test.v b/vlib/v/tests/options/option_fn_var_test.v index b4dc3a2b3b973e..22ba71b16d9562 100644 --- a/vlib/v/tests/options/option_fn_var_test.v +++ b/vlib/v/tests/options/option_fn_var_test.v @@ -19,3 +19,9 @@ fn test_main() { println(fun) assert fun == 'options' } + +fn test_ifguard() { + if req2 := find_func('vlang') { + assert req2('options') == 'options' + } +}