Hi
Calling the following vim9 Foo() function gives an error:
E1027: Missing return statement
```
vim9script
def Foo(): string
try
return "foo"
catch
return "bar"
endtry
enddef
Foo()
```
IMO, this function should be fine, it should not cause a E1027 error.
I can work around by adding a return at the end after the entry,
but it's deadcode. All code paths already return.
Regards
Dominique
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAON-T_jFd5_6nUBnDP0GPAw%2B%3DsSw417efWvr0EmmpGwa7b1hTw%40mail.gmail.com.