Ernie Rael wrote:

> Run this shell command
> 
>     vim -Nu NONE -S <(tee <<'EOF'
>          vim9script
>          def X(f: func): any
>              return f()
>          enddef
>          echo X(() => "HERE")
>     EOF
>     )
> 
> An error is given
> 
>     E117: Unknown function: f
> 
> Expected
> 
> Either it works. Or a better error message is given. Perhaps
> 
>     E1267: Function name must start with a capital: f()

Right.  We can use the existing error E704.

-- 
Facepalm statement #2: "If there is a country without immigrants I'm going to
move there"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/20220317162407.A0BA71C7857%40moolenaar.net.

Raspunde prin e-mail lui