vim9: internal error when calling a function reference with less number of arguments

6 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Dec 20, 2020, 1:48:55 PM12/20/20
to vim_dev
Hi,

I am getting a "E685: Internal error: copy_tv(UNKNOWN)" error when
using the following vim9 script:

=====================================================
vim9script

def Func1(arg1: string, arg2: dict<number>, arg3: dict<number>)
  var v = arg3.value
enddef

def g:Test()
  var funcMap: dict<func> = {'msg': Func1}
  funcMap['msg']('abc', {'value': 10})
enddef

call Test()
=====================================================

- Yegappan

Bram Moolenaar

unread,
Dec 20, 2020, 3:11:25 PM12/20/20
to vim...@googlegroups.com, Yegappan Lakshmanan
Fixed by patch 8.2.2172.

--
A salesperson says: Translation:
"backward compatible" Old technology
"Premium" Overpriced
"Can't keep it on the shelf" Unavailable
"Stands alone" Piece of shit
"Proprietary" Incompatible
(Scott Adams - The Dilbert principle)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages