Hi,

On Sun, Jul 11, 2021 at 7:58 AM lacygoill <[email protected]> wrote:

> Something else is still broken by the same patch:
>
> vim9scriptdef Func()
>     virtcol([1, 1])enddefdefcompile
>
> E1013: Argument 1: type mismatch, expected list<string> but got list<number>
>
> There should be no error. It worked before, and while this code is
> useless, it's a simplification of a code which is useful.
>

I have created PR 8545 to address this issue.

Regards,
Yegappan


> Also, it's inconsistent for 2 reasons:
>
> vim9scriptvirtcol([1, 1])
>
> No error at the script level, but error in compiled code.
>
> vim9scriptdef Func()
>     virtcol([1, '$'])enddefdefcompile
>
> No error in compiled code if one of the items is the string '$'. This
> means that Vim is ok with list<any>. But the previous error said that Vim
> expected list<string>.
>
> To be consistent, Vim should accept list<any> at the script level and in
> compiled code.
>
>
>

-- 
-- 
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/CAAW7x7krsqhAy%2BojoNrN3iSTCiuAQ5zT0vBoxQ7FhoJZw-6tFQ%40mail.gmail.com.

Raspunde prin e-mail lui