summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-06 04:16:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-06 04:16:40 +0800
commitc4c0009ef28de6cd4bfe01c497cbb718f3c2dff8 (patch)
tree7524eb0f7370f256cb74934fe731464f9884b874 /test/type_inference
parentbf3f97e05082f2a529621a70c3fde516513076b1 (diff)
downloadlua-language-server-c4c0009ef28de6cd4bfe01c497cbb718f3c2dff8.zip
update
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 02e46b01..a6311e6e 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1367,3 +1367,17 @@ TEST 'function' [[
---@overload fun()
function <?f?>() end
]]
+
+TEST 'integer' [[
+---@type table<string, integer>
+local t
+
+t.<?a?>
+]]
+
+TEST '"a"|"b"|"c"' [[
+---@type table<string, "a"|"b"|"c">
+local t
+
+t.<?a?>
+]]