Skip to content

Commit 488471b

Browse files
committed
fix #880
1 parent 2bbaf3e commit 488471b

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Diff for: changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* `unknown-operator`
1616
* `NEW` settings:
1717
* `diagnostics.unusedLocalExclude`
18+
* `FIX` [#880](https://github.com/sumneko/lua-language-server/issues/880)
1819
* `FIX` [#1284](https://github.com/sumneko/lua-language-server/issues/1284)
1920
* `FIX` [#1292](https://github.com/sumneko/lua-language-server/issues/1292)
2021
* `FIX` [#1294](https://github.com/sumneko/lua-language-server/issues/1294)

Diff for: script/parser/luadoc.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,7 @@ local function bindGeneric(binded)
15381538
end
15391539
end
15401540
if doc.type == 'doc.param'
1541+
or doc.type == 'doc.vararg'
15411542
or doc.type == 'doc.return'
15421543
or doc.type == 'doc.type'
15431544
or doc.type == 'doc.class'

Diff for: test/type_inference/init.lua

+11
Original file line numberDiff line numberDiff line change
@@ -3640,3 +3640,14 @@ end
36403640
36413641
local <?n?> = f()
36423642
]]
3643+
3644+
TEST 'integer' [[
3645+
---@generic T
3646+
---@vararg T # ERROR
3647+
---@return T
3648+
local function test(...)
3649+
return ...
3650+
end
3651+
3652+
local <?n?> = test(1)
3653+
]]

0 commit comments

Comments
 (0)