comparison src/testdir/test_vim9_expr.vim @ 25126:b825efff9790 v8.2.3100

patch 8.2.3100: Vim9: no error when using type with unknown number of args Commit: https://github.com/vim/vim/commit/7a40ff00edd35cc4313d74a43e7a7b67cd24372d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 4 15:54:08 2021 +0200 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 https://github.com/vim/vim/issues/8492)
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Jul 2021 16:00:03 +0200
parents 99494ef94fc2
children e5d85e83a887
comparison
equal deleted inserted replaced
25125:a3ab834c714c 25126:b825efff9790
55 var Other: func = function('winnr') 55 var Other: func = function('winnr')
56 var Res: func = g:atrue ? Some : Other 56 var Res: func = g:atrue ? Some : Other
57 assert_equal(function('len'), Res) 57 assert_equal(function('len'), Res)
58 58
59 var RetOne: func(string): number = function('len') 59 var RetOne: func(string): number = function('len')
60 var RetTwo: func(string): number = function('winnr') 60 var RetTwo: func(string): number = function('charcol')
61 var RetThat: func = g:atrue ? RetOne : RetTwo 61 var RetThat: func = g:atrue ? RetOne : RetTwo
62 assert_equal(function('len'), RetThat) 62 assert_equal(function('len'), RetThat)
63 63
64 var X = FuncOne 64 var X = FuncOne
65 var Y = FuncTwo 65 var Y = FuncTwo