summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-07 21:00:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-07 21:00:59 +0800
commit34d32a478bcd066baf49ccf36f5f26a132cbfab8 (patch)
treeb0efdb7103dde9cf5b7f16f3a24886bf555708a7 /test
parent0618f3793e2687e5e15e9d5a51838d61b306dec5 (diff)
downloadlua-language-server-34d32a478bcd066baf49ccf36f5f26a132cbfab8.zip
fix warning
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/type-check.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua
index a8525ab0..267c3a27 100644
--- a/test/diagnostics/type-check.lua
+++ b/test/diagnostics/type-check.lua
@@ -991,6 +991,18 @@ end
]]
TEST [[
+---@type fun():number?
+local function f()
+end
+]]
+
+TEST [[
+---@type fun():...
+local function f()
+end
+]]
+
+TEST [[
---@type fun():number
local function f()
return 1, <!true!>