summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-13 22:14:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-13 22:14:50 +0800
commit73a4780aa866737851040239eee52a013b5401d0 (patch)
tree7770bff33ab194c37dd47ca0dac57f2dc322f422 /test
parentb3b71716f689be9115cdde8d6caf0314e76ae523 (diff)
downloadlua-language-server-73a4780aa866737851040239eee52a013b5401d0.zip
cleanup
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua10
-rw-r--r--test/type_inference/init.lua8
2 files changed, 13 insertions, 5 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 6aa1dd6a..dcdcca0a 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1382,8 +1382,8 @@ TEST [[
return ('1'):gsub()
]]
-TEST [[
-local value
-value = '1'
-value = value:gsub()
-]]
+--TEST [[
+--local value
+--value = '1'
+--value = value:gsub()
+--]]
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index fd6e464f..c2bd96b7 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -567,6 +567,14 @@ local f
local <?n?> = f(nil)
]]
+TEST 'unknown' [[
+---@generic K
+---@type fun(a: K|integer):K
+local f
+
+local <?n?> = f(1)
+]]
+
TEST 'integer' [[
---@class integer