Vim9 function returning list crashes Vim

15 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Mar 25, 2020, 1:28:20 PM3/25/20
to vim_dev
Hi all,

The following Vim9 function crashes Vim.

def F1(): list
    return [1, 2, 3]
enddef
echo F1()

- Yegappan

Yegappan Lakshmanan

unread,
Mar 25, 2020, 1:53:23 PM3/25/20
to vim_dev
Hi,

On Wed, Mar 25, 2020 at 10:28 AM Yegappan Lakshmanan <yega...@gmail.com> wrote:
Hi all,

The following Vim9 function crashes Vim.

def F1(): list
    return [1, 2, 3]
enddef
echo F1()


If list<number> is used as the return type instead of list, then this works.
A similar crash is seen if list<dict> is used instead of list<dict<any>>

- Yegappan 

Reply all
Reply to author
Forward
0 new messages