summaryrefslogtreecommitdiff
path: root/test/type_inference
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/type_inference
parentb3b71716f689be9115cdde8d6caf0314e76ae523 (diff)
downloadlua-language-server-73a4780aa866737851040239eee52a013b5401d0.zip
cleanup
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua8
1 files changed, 8 insertions, 0 deletions
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