mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
fix(diagnostic): typing
This commit is contained in:

committed by
Lewis Russell

parent
91ba9d0bf4
commit
50284d07b6
@@ -14,8 +14,9 @@ local F = {}
|
||||
--- assert(vim.F.if_nil(a, b, c, d) == 42)
|
||||
--- ```
|
||||
---
|
||||
---@param ... any
|
||||
---@return any
|
||||
---@generic T
|
||||
---@param ... T
|
||||
---@return T
|
||||
function F.if_nil(...)
|
||||
local nargs = select('#', ...)
|
||||
for i = 1, nargs do
|
||||
|
Reference in New Issue
Block a user