mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.3100: Vim9: no error when using type with unknown number of args
Problem: Vim9: no error when using type with unknown number of arguments. Solution: Do not ignore argument count of -1. (closes #8492)
This commit is contained in:
@@ -57,7 +57,7 @@ def Test_expr1_trinary()
|
||||
assert_equal(function('len'), Res)
|
||||
|
||||
var RetOne: func(string): number = function('len')
|
||||
var RetTwo: func(string): number = function('winnr')
|
||||
var RetTwo: func(string): number = function('charcol')
|
||||
var RetThat: func = g:atrue ? RetOne : RetTwo
|
||||
assert_equal(function('len'), RetThat)
|
||||
|
||||
|
Reference in New Issue
Block a user